Sha256: ec1adcbcf6aa66c022936eef8cc00c2e7d4b2fcffe78ff26780c99b10b93c77d

Contents?: true

Size: 256 Bytes

Versions: 74

Compression:

Stored size: 256 Bytes

Contents

class Complement < ApplicationRecord
  include GuideContainer
  include FriendlyName

  validates_presence_of :book

  belongs_to :guide
  belongs_to :book

  include TerminalNavigation

  def used_in?(organization)
    organization.book == book
  end
end

Version data entries

74 entries across 74 versions & 2 rubygems

Version Path
mumuki-laboratory-5.10.3 app/models/complement.rb
mumuki-laboratory-5.10.2 app/models/complement.rb
mumuki-laboratory-5.10.1 app/models/complement.rb
mumuki-laboratory-5.10.0 app/models/complement.rb
mumuki-laboratory-5.9.1 app/models/complement.rb
mumuki-laboratory-5.9.0 app/models/complement.rb
mumuki-laboratory-5.8.3 app/models/complement.rb
mumuki-laboratory-5.8.1 app/models/complement.rb
mumuki-laboratory-5.8.0 app/models/complement.rb
mumuki-laboratory-5.7.0 app/models/complement.rb
mumuki-laboratory-5.6.3 app/models/complement.rb
mumuki-laboratory-5.6.2 app/models/complement.rb
mumuki-laboratory-5.6.1 app/models/complement.rb
mumuki-laboratory-5.6.0 app/models/complement.rb
mumuki-laboratory-5.5.0 app/models/complement.rb
mumuki-laboratory-5.4.0 app/models/complement.rb
mumuki-laboratory-5.3.0 app/models/complement.rb
mumuki-laboratory-5.2.1 app/models/complement.rb
mumuki-laboratory-5.2.0 app/models/complement.rb
mumuki-laboratory-5.1.1 app/models/complement.rb