Class: Whiteprint::Adapters::ActiveRecord::HasAndBelongsToMany
- Inherits:
-
Whiteprint::Adapters::ActiveRecord
- Object
- Base
- Whiteprint::Adapters::ActiveRecord
- Whiteprint::Adapters::ActiveRecord::HasAndBelongsToMany
- Defined in:
- lib/whiteprint/adapters/active_record/has_and_belongs_to_many.rb
Constant Summary
Constants inherited from Whiteprint::Adapters::ActiveRecord
Instance Attribute Summary
Attributes inherited from Base
#attributes, #configs, #model, #options
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Whiteprint::Adapters::ActiveRecord
#accessor, camelize, generate_migration, #has_and_belongs_to_many, #initialize, #method_missing, migration, #migration, #options_from_column, #persisted_attributes, #references, #table_exists?, underscore
Methods inherited from Base
#clone_to, #execute, #explanation, #initialize, load_plugins, #method_missing, #persisted_attributes, #set_model, #table_exists?, #table_name
Constructor Details
This class inherits a constructor from Whiteprint::Adapters::ActiveRecord
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Whiteprint::Adapters::ActiveRecord
Class Method Details
.applicable?(_) ⇒ Boolean
4 5 6 |
# File 'lib/whiteprint/adapters/active_record/has_and_belongs_to_many.rb', line 4 def self.applicable?(_) false end |
Instance Method Details
#changes? ⇒ Boolean
13 14 15 |
# File 'lib/whiteprint/adapters/active_record/has_and_belongs_to_many.rb', line 13 def changes? !model.table_exists? end |
#changes_tree ⇒ Object
8 9 10 11 |
# File 'lib/whiteprint/adapters/active_record/has_and_belongs_to_many.rb', line 8 def changes_tree return {} if model.table_exists? super end |
#transformer ⇒ Object
17 18 19 |
# File 'lib/whiteprint/adapters/active_record/has_and_belongs_to_many.rb', line 17 def transformer self.class.parent end |