class RailsBestPractices::Reviews::MoveCodeIntoModelReview
and the receiver is a variable, then they should be moved into model.
check if, unless, elsif there are multiple method calls or attribute assignments apply to one receiver,
Review process:
Implementation:
See the best practice details here rails-bestpractices.com/posts/2010/07/24/move-code-into-model/
Review a view file to make sure there is no complex logic call for model.
def initialize(options = {})
def initialize(options = {}) super(options) @use_count = options['use_count'] || 2 end