Skip to content

Commit

Permalink
795452 - fix regression - handling environment comming from CP
Browse files Browse the repository at this point in the history
(cherry picked from commit c61baec)
  • Loading branch information
iNecas committed Feb 20, 2012
1 parent 2b01d74 commit e6a1d97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/models/glue/candlepin/consumer.rb
Expand Up @@ -64,6 +64,9 @@ def initialize(attrs = nil)
attrs_used_by_model = attrs.reject do |k, v|
!attributes_from_column_definition.keys.member?(k.to_s) && (!respond_to?(:"#{k.to_s}=") rescue true)
end
if attrs_used_by_model["environment"].is_a? Hash
attrs_used_by_model.delete("environment")
end
super(attrs_used_by_model)
end
end
Expand Down

0 comments on commit e6a1d97

Please sign in to comment.