Module: UsesguidMigrations::ActiveRecordExtensions::Schema::ClassMethods
- Defined in:
- lib/usesguid_migrations/active_record_extensions/schema.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/usesguid_migrations/active_record_extensions/schema.rb', line 10 def self.extended( base ) class << base attr_accessor :defining alias :defining? :defining alias_method_chain :define, :lfe_usesguid_migrations end end |
Instance Method Details
#define_with_lfe_usesguid_migrations(info = {}, &block) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/usesguid_migrations/active_record_extensions/schema.rb', line 19 def define_with_lfe_usesguid_migrations( info={}, &block ) self.defining = true define_without_lfe_usesguid_migrations( info, &block ) ensure self.defining = false end |