Module: ScopedAttributes::Scopable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/scoped_attributes/scopable.rb
Instance Method Summary collapse
Instance Method Details
#scoped(user) ⇒ Object
7 8 9 10 |
# File 'lib/scoped_attributes/scopable.rb', line 7 def scoped(user) klass_name = "Scoped#{self.model_name}" klass_name.constantize.new(self, user).to_model end |