Module: Draper::AutomaticDelegation

Extended by:
ActiveSupport::Concern
Defined in:
lib/draper/automatic_delegation.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#respond_to_missing?(method, include_private = false) ⇒ Boolean

Checks if the decorator responds to an instance method, or is able to proxy it to the source object.

Returns:

  • (Boolean)


17
18
19
# File 'lib/draper/automatic_delegation.rb', line 17

def respond_to_missing?(method, include_private = false)
  super || delegatable?(method)
end