Module: ReeDao::DatasetExtensions
- Defined in:
- lib/ree_lib/packages/ree_dao/package/ree_dao/dataset_extensions.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.alias_methods(base) ⇒ Object
15 16 17 18 19 |
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/dataset_extensions.rb', line 15 def self.alias_methods(base) [:all, :update, :delete, :first, :last].each do |m| base.alias_method(:"__original_#{m}", m) end end |
.extended(base) ⇒ Object
10 11 12 13 |
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/dataset_extensions.rb', line 10 def self.extended(base) alias_methods(base) base.include(InstanceMethods) end |
.included(base) ⇒ Object
5 6 7 8 |
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/dataset_extensions.rb', line 5 def self.included(base) alias_methods(base) base.include(InstanceMethods) end |