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

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

Overview

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

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



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

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