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
11 12 13 14 15 16 17 |
# File 'lib/grape-swagger-rails.rb', line 11 def before_action(&block) if block_given? self.before_action_proc = block else before_action_proc end end |
#before_filter(&block) ⇒ Object
5 6 7 8 9 |
# File 'lib/grape-swagger-rails.rb', line 5 def before_filter(&block) ActiveSupport::Deprecation.warn('This option is deprecated and going to be removed in 1.0.0. ' \ 'Please use `before_action` instead') before_action(&block) end |