Module: UnscopedAssociations
- Defined in:
- lib/unscoped_associations.rb,
lib/unscoped_associations/version.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- VERSION =
"0.7.0"
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/unscoped_associations.rb', line 4 def self.included(base) base.extend ClassMethods class << base alias_method_chain :belongs_to, :unscoped alias_method_chain :has_many, :unscoped alias_method_chain :has_one, :unscoped end end |