Sha256: 4fb75af99c86e8a5a8a3a09aef0e3647a589a280b7c84ab9fe2624c9f00ab3c5

Contents?: true

Size: 241 Bytes

Versions: 53

Compression:

Stored size: 241 Bytes

Contents

class <%= subsite_name %>::<%= subsite_name %>SiteController < ApplicationController

  hobo_controller

  before_filter :admin_required

  private

  def admin_required
    redirect_to home_page unless current_user.administrator?
  end

end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
hobo-2.2.6 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.2.5 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.2.4 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.2.3 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.2.2 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.2.1 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.2.0 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.1.2 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.1.1 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.1.0 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.1.0.pre4 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.1.0.pre3 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.1.0.pre2 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.1.0.pre1 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.0.1 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.0.0 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.0.0.pre10 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.0.0.pre9 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-2.0.0.pre8 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-1.3.3 lib/generators/hobo/admin_subsite/templates/controller.rb.erb