Skip to content

Commit

Permalink
Add ActiveSupport::Autoload extension to Attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
beauby committed Dec 30, 2015
1 parent a586a45 commit 77095f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/active_model/serializer/attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module Attributes
self._attributes_data ||= {}
end

extend ActiveSupport::Autoload
autoload :Attribute

# Return the +attributes+ of +object+ as presented
Expand Down

0 comments on commit 77095f2

Please sign in to comment.