Class: GrapeSwaggerRails::Options
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- GrapeSwaggerRails::Options
- Defined in:
- lib/grape-swagger-rails.rb
Instance Method Summary collapse
Instance Method Details
#before_action(&block) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/grape-swagger-rails.rb', line 17 def before_action(&block) if block_given? self.before_action_proc = block else before_action_proc end end |
#before_filter ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/grape-swagger-rails.rb', line 9 def before_filter(&) GrapeSwaggerRails.deprecator.warn( 'This option is deprecated and going to be removed in 1.0.0. ' \ 'Please use `before_action` instead' ) before_action(&) end |