Skip to content

Conversation

@voodoologic
Copy link

Supplying a pull request because it seems as though this line was a bug.

The code as written wouldn't take all my attributes provided in a an argument to #new.

@attributes ||= ActiveSupport::HashWithIndifferentAccess.new(attrs)

return @attributes unless attrs.present?
attrs.each do |key, value|
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be run, no?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

Needed for non-activerecord objects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants