Module: Repositor::Repo::InstanceMethodsFilter

Included in:
ActiveRecordAdapter
Defined in:
lib/repositor/repo/instance_allow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#allowed_methodsObject (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