Sha256: 4baa67173084d0c3f16dec3341d115a7381dccf3011d522e55ef43dd01881108

Contents?: true

Size: 251 Bytes

Versions: 28

Compression:

Stored size: 251 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

28 entries across 28 versions & 1 rubygems

Version Path
hobo-1.1.0 rails_generators/hobo_admin_site/templates/controller.rb
hobo-1.0.3 rails_generators/hobo_admin_site/templates/controller.rb
hobo-1.1.0.pre4 rails_generators/hobo_admin_site/templates/controller.rb
hobo-1.1.0.pre3 rails_generators/hobo_admin_site/templates/controller.rb
hobo-1.3.0.pre19 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-1.3.0.pre18 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-1.1.0.pre2 rails_generators/hobo_admin_site/templates/controller.rb
hobo-1.1.0.pre0 rails_generators/hobo_admin_site/templates/controller.rb
hobo-1.0.2 rails_generators/hobo_admin_site/templates/controller.rb
hobo-1.3.0.pre16 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-1.3.0.pre15 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-1.3.0.pre14 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-1.3.0.pre13 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-1.3.0.pre12 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-1.3.0.pre11 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-1.3.0.pre10 lib/generators/hobo/admin_subsite/templates/controller.rb.erb
hobo-1.0.1 rails_generators/hobo_admin_site/templates/controller.rb
hobo-1.0.0 rails_generators/hobo_admin_site/templates/controller.rb
hobo-0.9.106 rails_generators/hobo_admin_site/templates/controller.rb
hobo-0.9.105 rails_generators/hobo_admin_site/templates/controller.rb