spree/spree — Issue #1003: where is register_calculator?
Author: graffzon
Created: 2012-01-20 15:00:17+00:00
State: open

Hi, guys!
I tried to make that:

```ruby
class Calculator::Rupost < Calculator
def self.description
end

def compute(object=nil)
end

def self.register
super
ShippingMethod.register_calculator(self)
end
end
```

But in result:

```ruby
/Users/username/.rvm/gems/ruby-1.9.2-p290@detstvo/gems/activerecord-3.1.3/lib/active_record/base.rb:1088:in `method_missing': undefined method `register_calculator' for # (NoMethodError)
```

What can it be? Help please!

P.S. Spree branch '0-70-stable', Rails 3.1.3