Permalink
Browse files

do not dup known_attributes

  • Loading branch information...
1 parent f41eaae commit fdad058eeabbaf22dcf1af435310c3084a2f08e6 @maccman maccman committed Aug 26, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −1 VERSION
  2. +1 −0 lib/supermodel.rb
  3. +1 −1 lib/supermodel/base.rb
View
@@ -1 +1 @@
-0.1.4
+0.1.6
View
@@ -9,6 +9,7 @@
require "active_support/core_ext/object/blank"
require "active_support/core_ext/object/try"
require "active_support/core_ext/object/to_query"
+require "active_support/core_ext/class/attribute"
require "active_support/json"
require "active_model"
@@ -17,7 +17,7 @@ def collection(&block)
end
def attributes(*attributes)
- self.known_attributes += attributes.map(&:to_s)
+ self.known_attributes |= attributes.map(&:to_s)
end
def records

0 comments on commit fdad058

Please sign in to comment.