Permalink
Browse files

ActiveRecord::VERSION is not defined in Rails 2.2

  • Loading branch information...
1 parent e34725d commit dbf0e5d44fe438a7fac8ce0a3abb2d18af1b112b @mguterl committed Dec 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/serializable_attributes/schema.rb
@@ -102,7 +102,7 @@ def reload(options = nil)
end
end
- if ActiveRecord::VERSION::STRING >= '3.1'
+ if defined?(ActiveRecord::VERSION) && ActiveRecord::VERSION::STRING >= '3.1'
@model.send(:define_method, :attributes) do
super.merge(send(data_field))
end

0 comments on commit dbf0e5d

Please sign in to comment.