Module: Hanami::Action::Exposable::Guard

Defined in:
lib/hanami/action/exposable/guard.rb

Overview

Guard for Exposures API. Prevents exposure of reserved words

See Also:

Since:

  • 0.7.1

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Override Ruby’s hook for modules. It prepends a guard for the exposures logic

Parameters:

  • base (Class)

    the target action

See Also:

Since:

  • 0.7.1



31
32
33
34
35
# File 'lib/hanami/action/exposable/guard.rb', line 31

def self.included(base)
  class << base
    prepend ClassMethods
  end
end