Sha256: e6bbd4c3cb70303f38d9a2effeb8e78c9c1894e1b68855def8e85f085a5cde35

Contents?: true

Size: 692 Bytes

Versions: 24

Compression:

Stored size: 692 Bytes

Contents

class ApplicationController < ActionController::Base
  include SslRequirement
  helper :all
  protect_from_forgery

  protected
    # called by Admin::Muck::BaseController to check whether or not the
    # user should have access to the admin UI
    def admin_access?
      admin?
    end
    
    # only require ssl if we are in production
    def ssl_required?
      return ENV['SSL'] == 'on' ? true : false if defined? ENV['SSL']
      return false if local_request?
      return false if RAILS_ENV == 'test'
      ((self.class.read_inheritable_attribute(:ssl_required_actions) || []).include?(action_name.to_sym)) && (RAILS_ENV == 'production' || RAILS_ENV == 'staging')
    end
    
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
muck-comments-0.1.21 test/rails_root/app/controllers/application_controller.rb
muck-comments-0.1.20 test/rails_root/app/controllers/application_controller.rb
muck-comments-0.1.19 test/rails_root/app/controllers/application_controller.rb
muck-comments-0.1.18 test/rails_root/app/controllers/application_controller.rb
muck-comments-0.1.17 test/rails_root/app/controllers/application_controller.rb
muck-comments-0.1.16 test/rails_root/app/controllers/application_controller.rb
muck-shares-0.1.8 test/rails_root/app/controllers/application_controller.rb
muck-comments-0.1.15 test/rails_root/app/controllers/application_controller.rb
muck-comments-0.1.14 test/rails_root/app/controllers/application_controller.rb
muck-shares-0.1.7 test/rails_root/app/controllers/application_controller.rb
muck-comments-0.1.13 test/rails_root/app/controllers/application_controller.rb
muck-shares-0.1.6 test/rails_root/app/controllers/application_controller.rb
muck-comments-0.1.12 test/rails_root/app/controllers/application_controller.rb
muck-shares-0.1.5 test/rails_root/app/controllers/application_controller.rb
muck-comments-0.1.11 test/rails_root/app/controllers/application_controller.rb
muck-shares-0.1.4 test/rails_root/app/controllers/application_controller.rb
muck-comments-0.1.10 test/rails_root/app/controllers/application_controller.rb
muck-shares-0.1.1 test/rails_root/app/controllers/application_controller.rb
muck-shares-0.1.2 test/rails_root/app/controllers/application_controller.rb
muck-shares-0.1.3 test/rails_root/app/controllers/application_controller.rb