Module: Padrino::Responders
- Defined in:
- lib/padrino-responders.rb,
lib/padrino-responders/default.rb,
lib/padrino-responders/notifiers/flash_notifier.rb,
lib/padrino-responders/helpers/controller_helpers.rb
Overview
This component is used to create slim controllers without unnecessery and repetitive code.
Defined Under Namespace
Modules: Default, Helpers, Notifiers
Class Method Summary collapse
- .registered(app) ⇒ Object (also: included)
Class Method Details
.registered(app) ⇒ Object Also known as: included
18 19 20 21 22 |
# File 'lib/padrino-responders.rb', line 18 def registered(app) app.set :notifier, Padrino::Responders::Notifiers::FlashNotifier app.helpers Padrino::Responders::Helpers::ControllerHelpers app.send :include, Padrino::Responders::Default end |