970c3e4b2b
Calling business logic in a factory is a code-smell, because it usually requires the object to be saved into database, and may have unintended consequences when the business logic is changed. Also, this allows to just build a published procedure, without saving it to the database. |
||
---|---|---|
.. | ||
controllers | ||
factories | ||
fixtures | ||
helpers | ||
jobs | ||
lib | ||
mailers | ||
middlewares | ||
models | ||
policies | ||
serializers | ||
services | ||
support | ||
system | ||
views | ||
rails_helper.rb | ||
spec_helper.rb |