26 lines
489 B
Ruby
26 lines
489 B
Ruby
|
module Locomotive
|
||
|
module Public
|
||
|
class RenderingController < ApplicationController
|
||
|
|
||
|
include Locomotive::Routing::SiteDispatcher
|
||
|
|
||
|
include Locomotive::Render
|
||
|
|
||
|
before_filter :require_site
|
||
|
|
||
|
before_filter :authenticate_admin!, :only => [:edit]
|
||
|
|
||
|
before_filter :validate_site_membership, :only => [:edit]
|
||
|
|
||
|
def show
|
||
|
render_locomotive_page
|
||
|
end
|
||
|
|
||
|
def edit
|
||
|
@editing = true
|
||
|
render_locomotive_page
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|