Fix default arguments' value typo

With this fix, spree can be run on jruby
Use def with parentheses when there are parameters.