Module: Liquidizer::ControllerExtensions::ClassMethods

Defined in:
lib/liquidizer/controller_extensions.rb

Instance Method Summary collapse

Instance Method Details

#liquify(options = {}) ⇒ Object

Enables liquid rendering.

Examples

# liquify all actions
liquify

# liquify only show and index
liquify :only => [:show, :index]

# liquify all except show and index
liquify :except => [:show, :index]

# liquify all, but do not liquify layout
liquify :layout => false


206
207
208
# File 'lib/liquidizer/controller_extensions.rb', line 206

def liquify(options = {})
  self.liquidizer_options = options.reverse_merge(:actions => true, :layout => true)
end