engine/app/controllers/locomotive/rendering_controller.rb

23 lines
439 B
Ruby
Raw Normal View History

module Locomotive
2010-06-03 15:32:40 +00:00
class RenderingController < ActionController::Base
2010-06-03 15:32:40 +00:00
include Locomotive::Routing::SiteDispatcher
2010-06-03 15:32:40 +00:00
include Locomotive::Render
2010-06-03 15:32:40 +00:00
before_filter :require_site
before_filter :authenticate_admin!, :only => [:edit]
before_filter :validate_site_membership, :only => [:edit]
2010-06-03 15:32:40 +00:00
def show
render_locomotive_page
end
def edit
@editing = true
render_locomotive_page
end
2010-06-03 15:32:40 +00:00
end
end