Module: Repositor::Repo::InstanceMethodsFilter
- Included in:
- ActiveRecordAdapter
- Defined in:
- lib/repositor/repo/instance_allow.rb
Instance Attribute Summary collapse
-
#allowed_methods ⇒ Object
readonly
Returns the value of attribute allowed_methods.
Instance Method Summary collapse
-
#allow_instance_methods(*methods) ⇒ Object
Define which methods only will be allowed to resend to model instance.
Instance Attribute Details
#allowed_methods ⇒ Object (readonly)
Returns the value of attribute allowed_methods.
3 4 5 |
# File 'lib/repositor/repo/instance_allow.rb', line 3 def allowed_methods @allowed_methods end |
Instance Method Details
#allow_instance_methods(*methods) ⇒ Object
Define which methods only will be allowed to resend to model instance
6 7 8 |
# File 'lib/repositor/repo/instance_allow.rb', line 6 def allow_instance_methods(*methods) @allowed_methods = methods end |