Permalink
Browse files

fix values_for

  • Loading branch information...
1 parent d5dd262 commit 1ab313137436797487897a77f3235689353f40d5 @aduffeck aduffeck committed Nov 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/bitmask_attributes/definition.rb
@@ -65,7 +65,7 @@ def #{attribute}=(raw_value)
def create_attribute_methods_on(model)
model.class_eval %(
def self.values_for_#{attribute} # def self.values_for_numbers
- #{values} # [:one, :two, :three]
+ #{values.inspect} # [:one, :two, :three]
end # end
)
end
@@ -151,4 +151,4 @@ def create_scopes_on(model)
end
end
end
-end
+end

0 comments on commit 1ab3131

Please sign in to comment.