Module: Bh::Extensions::Padrino
- Included in:
- Bh
- Defined in:
- lib/bh/core_ext/padrino.rb
Overview
Makes Bootstrap helpers available in Padrino applications.
To use Bh in a Padrino app you need 2 steps:
- include bh in the Gemfile
- add
register Bhin theapp.rbfile
The following method adds Bh as one of the modules that can be registered
in a Padrino app, but you still need to register it manually in order to
make helpers available.
Instance Method Summary collapse
-
#registered(app) ⇒ Object
Register Bh as a Padrino app.
Instance Method Details
#registered(app) ⇒ Object
Register Bh as a Padrino app.
15 16 17 |
# File 'lib/bh/core_ext/padrino.rb', line 15 def registered(app) app.include Bh::Helpers end |