Class: Complement

Inherits:
ApplicationRecord show all
Includes:
FriendlyName, GuideContainer, TerminalNavigation
Defined in:
app/models/complement.rb

Instance Method Summary collapse

Methods included from TerminalNavigation

#friendly, #navigable_name, #navigation_end?, #siblings, #structural_parent

Methods included from FriendlyName

#friendly_name, #to_param

Methods included from GuideContainer

#attempts_left_for, #friendly, #index_usage!, #limited_for?, #resettable?, #results_hidden_for?, #start!, #timed?, #validate_accessible_for!

Methods included from Container

#progress_for

Methods inherited from ApplicationRecord

aggregate_of, all_except, defaults, #delete, #destroy!, numbered, organic_on, resource_fields, #save, #save_and_notify!, #save_and_notify_changes!, serialize_symbolized_hash_array, #update_and_notify!, update_or_create!, whitelist_attributes

Instance Method Details

#used_in?(organization) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/models/complement.rb', line 11

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