Skip to content

Commit

Permalink
Move attributes_by_nesting delegation to conform to coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
nametoolong authored and adamcrown committed Jul 2, 2023
1 parent c39e01c commit 8cabe62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cache_crispies/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -210,6 +210,7 @@ def self.attributes_by_nesting
attributes.sort_by(&:nesting).group_by(&:nesting)
)
end
delegate :attributes_by_nesting, to: :class

private

Expand Down

0 comments on commit 8cabe62

Please sign in to comment.