Module: Ridgepole::Ext::SchemaDumper::ForeignKeys::ClassMethods
- Defined in:
- lib/ridgepole/ext/schema_dumper/foreign_keys.rb
Instance Attribute Summary collapse
-
#__with_default_fk_name ⇒ Object
readonly
Returns the value of attribute __with_default_fk_name.
Instance Method Summary collapse
Instance Attribute Details
#__with_default_fk_name ⇒ Object (readonly)
Returns the value of attribute __with_default_fk_name.
14 15 16 |
# File 'lib/ridgepole/ext/schema_dumper/foreign_keys.rb', line 14 def __with_default_fk_name @__with_default_fk_name end |
Instance Method Details
#with_default_fk_name(value) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/ridgepole/ext/schema_dumper/foreign_keys.rb', line 16 def with_default_fk_name(value) @__with_default_fk_name = value yield ensure remove_instance_variable(:@__with_default_fk_name) end |