lib/hanami/action/exposable.rb in hanami-controller-0.6.1 vs lib/hanami/action/exposable.rb in hanami-controller-0.7.0

- old
+ new

@@ -14,10 +14,13 @@ # @since 0.1.0 # @api private # # @see http://www.ruby-doc.org/core-2.1.2/Module.html#method-i-included def self.included(base) - base.extend ClassMethods + base.class_eval do + extend ClassMethods + expose :params + end end # Exposures API class methods # # @since 0.1.0