Module: Draper::AutomaticDelegation::ClassMethods

Defined in:
lib/draper/automatic_delegation.rb

Instance Method Summary collapse

Instance Method Details

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

Checks if the decorator responds to a class method, or is able to proxy it to the source class.

Returns:

  • (Boolean)


38
39
40
# File 'lib/draper/automatic_delegation.rb', line 38

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