lib/hanami/action/exposable/guard.rb in hanami-controller-1.0.0.beta2 vs lib/hanami/action/exposable/guard.rb in hanami-controller-1.0.0.beta3
- old
+ new
@@ -13,10 +13,11 @@
module Exposable
# Guard for Exposures API.
# Prevents exposure of reserved words
#
# @since 0.7.1
+ # @api private
#
# @see Hanami::Action::Exposable::Guard::ClassMethods#expose
# @see Hanami::Action::Exposable::Guard::ClassMethods#reserved_word?
module Guard
# Override Ruby's hook for modules.
@@ -45,9 +46,10 @@
# exposed
#
# @return [void]
#
# @since 0.7.1
+ # @api private
def expose(*names)
detect_reserved_words!(names)
super
end