Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
fix values_for
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Nov 23, 2011
1 parent d5dd262 commit 1ab3131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bitmask_attributes/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -151,4 +151,4 @@ def create_scopes_on(model)
end
end
end
end
end

0 comments on commit 1ab3131

Please sign in to comment.