Module: Lockdown::Orms::ActiveRecord
- Defined in:
- lib/lockdown/orms/active_record.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
9 10 11 12 |
# File 'lib/lockdown/orms/active_record.rb', line 9 def included(mod) mod.extend Lockdown::Orms::ActiveRecord::Helper mixin end |
.mixin ⇒ Object
14 15 16 17 18 |
# File 'lib/lockdown/orms/active_record.rb', line 14 def mixin Lockdown.orm_parent.class_eval do include Lockdown::Orms::ActiveRecord::Stamps end end |
.use_me? ⇒ Boolean
5 6 7 |
# File 'lib/lockdown/orms/active_record.rb', line 5 def use_me? Object.const_defined?("ActiveRecord") && ::ActiveRecord.const_defined?("Base") end |