MiraitSystems/enju_trunk

View on GitHub
app/models/bookbinding.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method book_binding has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

   def book_binding
    Item.transaction do
      if self.binding_items.blank?
         errors[:base] = I18n.t('activerecord.errors.messages.bookbinding.bookbinding_nil')
         return nil
Severity: Minor
Found in app/models/bookbinding.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status