spree/spree — pull request #3426 by vishalzambre (2013-07-23 13:17:47+00:00)
Title: Calulator changes

I just trying to see all calculators from console but for this method I get the following error, so I just make change in Calculator Model and again check it works which result is at last..

1.9.3p125 :102 > Spree::Calculator.calculators
NoMethodError: undefined method `all' for #
from /Users/lebin/.rvm/gems/ruby-1.9.3-p125/bundler/gems/spree-9e4cfd575319/core/app/models/spree/calculator.rb:24:in `calculators'
from (irb):102
from /Users/lebin/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.13/lib/rails/commands/console.rb:47:in `start'
from /Users/lebin/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.13/lib/rails/commands/console.rb:8:in `start'
from /Users/lebin/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.13/lib/rails/commands.rb:41:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
1.9.3p125 :103 >

After making changes in def self.calculators method result is ..

1.9.3p125 :106 > Spree::Calculator.calculators
=> #
1.9.3p125 :107 >