Skip to content

Commit

Permalink
Oops, forgot to delete the code line that was replaced by my previous…
Browse files Browse the repository at this point in the history
… commit, which gitbub listed under the author 'access4h'
  • Loading branch information
demillir committed Jul 9, 2011
1 parent 8cffc21 commit 4af5e73
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/enumerated_attribute/integrations/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class << self
def new(*args, &block)
result = new_without_enumerated_attribute(*args, &block)
params = (!args.empty? && args.first.instance_of?(Hash)) ? args.first : {}
params.each { |k, v| result.write_enumerated_attribute(k, v) }
params.each { |k, v|
if result.class.has_enumerated_attribute?(k.to_s) then
nv = result.respond_to?(k) ? result.send(k) : v
Expand Down

0 comments on commit 4af5e73

Please sign in to comment.