Module: ArtDeco::Behaviour
- Defined in:
- lib/art_deco/behaviour.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 |
# File 'lib/art_deco/behaviour.rb', line 3 def self.included(base) base.before_filter do |controller| ArtDeco::ViewContext.current = controller.view_context end end |
Instance Method Details
#decorate(component) ⇒ Object
9 10 11 |
# File 'lib/art_deco/behaviour.rb', line 9 def decorate(component) ArtDeco::Decorator.factory(component) end |