Skip to content

Commit

Permalink
Fixing calculator collection for admin shippnig_method new/edit form.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Hwang committed Feb 6, 2012
1 parent 5454bab commit bf72c96
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -4,10 +4,6 @@
# overriding to return an array of Calculator objects instead of a Set
def load_data
@available_zones = Zone.find :all, :order => :name
@calculators = []
ShippingMethod.calculators.each {|calc|
@calculators << eval(calc.name).new
}
@calculators = @calculators.sort_by(&:description)
@calculators = ShippingMethod.calculators.sort_by(&:description)
end
end

0 comments on commit bf72c96

Please sign in to comment.