Module: Espresso::Controller::InheritedResourcesModifications::FeedScope
- Defined in:
- lib/espresso/controller/inherited_resources.rb
Instance Method Summary collapse
-
#feed_scope_applicable? ⇒ Boolean
Does scope #for_feed applicable to current action?.
Instance Method Details
#feed_scope_applicable? ⇒ Boolean
Does scope #for_feed applicable to current action?
104 105 106 |
# File 'lib/espresso/controller/inherited_resources.rb', line 104 def feed_scope_applicable? params[:format] && self.class.feed_formats.include?(params[:format].to_sym) end |