Module: Mascot
- Defined in:
- lib/mascot/rails.rb,
lib/mascot/engine.rb,
lib/mascot/route_constraint.rb,
lib/mascot/rails_configuration.rb,
lib/mascot/action_controller_context.rb,
app/helpers/mascot/application_helper.rb,
app/controllers/mascot/sitemap_controller.rb
Defined Under Namespace
Modules: ApplicationHelper Classes: ActionControllerContext, Configuration, Engine, RailsConfiguration, RouteConstraint, SitemapController
Constant Summary collapse
- PageNotFoundError =
Rescued by ActionController to display page not found error.
Class.new(StandardError)
Class Method Summary collapse
-
.configuration ⇒ Object
Default configuration object for Mascot Rails integration.
- .configure(&block) ⇒ Object
Class Method Details
.configuration ⇒ Object
Default configuration object for Mascot Rails integration.
15 16 17 |
# File 'lib/mascot/rails.rb', line 15 def self.configuration @configuration ||= RailsConfiguration.new end |
.configure(&block) ⇒ Object
19 20 21 |
# File 'lib/mascot/rails.rb', line 19 def self.configure(&block) block.call configuration end |