app/models/bookbinding.rb
Method book_binding
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def book_binding
Item.transaction do
if self.binding_items.blank?
errors[:base] = I18n.t('activerecord.errors.messages.bookbinding.bookbinding_nil')
return nil