Skip to content

Commit

Permalink
Don't include blob_field in #attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mguterl committed Jun 6, 2012
1 parent f00ae47 commit 03410a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/serializable_attributes/schema.rb
Expand Up @@ -104,7 +104,9 @@ def reload(options = nil)

if defined?(ActiveRecord::VERSION) && ActiveRecord::VERSION::STRING >= '3.1'
@model.send(:define_method, :attributes) do
super().merge(send(data_field))
attributes = super().merge(send(data_field))
attributes.delete blob_field
attributes
end
end

Expand Down

0 comments on commit 03410a9

Please sign in to comment.