diff --git a/lib/cache_crispies/base.rb b/lib/cache_crispies/base.rb index 20af83f..9758ff7 100644 --- a/lib/cache_crispies/base.rb +++ b/lib/cache_crispies/base.rb @@ -23,7 +23,7 @@ def self.inherited(other) class << self attr_reader :attributes end - delegate :attributes, :attributes_by_nesting, to: :class + delegate :attributes, to: :class # Initializes a new instance of CacheCrispies::Base, or really, it should # always be a subclass of CacheCrispies::Base. @@ -210,6 +210,7 @@ def self.attributes_by_nesting attributes.sort_by(&:nesting).group_by(&:nesting) ) end + delegate :attributes_by_nesting, to: :class private