Module: Copyable::Declarations

Defined in:
lib/copyable/declarations/main.rb,
lib/copyable/declarations/columns.rb,
lib/copyable/declarations/after_copy.rb,
lib/copyable/declarations/declaration.rb,
lib/copyable/declarations/associations.rb,
lib/copyable/declarations/declarations.rb,
lib/copyable/declarations/disable_all_callbacks_and_observers_except_validate.rb

Defined Under Namespace

Classes: AfterCopy, Associations, Columns, Declaration, DisableAllCallbacksAndObserversExceptValidate, Main

Constant Summary collapse

ALL =
[ DisableAllCallbacksAndObserversExceptValidate,
Columns,
Associations,
AfterCopy ]

Class Method Summary collapse

Class Method Details

.include?(method_name) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/copyable/declarations/declarations.rb', line 9

def self.include?(method_name)
  ALL.map(&:method_name).include?(method_name.to_s)
end