Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delegations #559

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
Use attr_reader to access instance variable in model instead of direc…
…tly accessing it through the instance variable itself
  • Loading branch information
tanmay3011 committed Dec 2, 2015
commit 10ea458a3eef3d30a27e04885bfbf860708ba193
2 changes: 1 addition & 1 deletion core/app/models/spree/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ def after_resume
end

def use_billing?
@use_billing == true || @use_billing == 'true' || @use_billing == '1'
use_billing.in?([true, 'true', '1'])
end

def set_currency
Expand Down