Sha256: a6456b1e71ef0697de3ca02dabf01a031b1ef48fdba66dde2715a60890453e32
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
class FrontEndController < ApplicationController before_filter :load_node, only: :node def node render *@node.template_args end private def load_node @node = PushType::Node.published.find_by_path permalink_parts raise ActiveRecord::RecordNotFound unless @node instance_variable_set "@#{ @node.type.underscore }", @node end def permalink_parts params[:permalink].split('/') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
push_type_core-0.2.0 | app/controllers/front_end_controller.rb |
push_type_core-0.2.0.beta2 | app/controllers/front_end_controller.rb |