Sha256: ae0881b4cf07896207dd81013ac444e7382eeba75c04a4fde4dbd3c1cec26942

Contents?: true

Size: 437 Bytes

Versions: 8

Compression:

Stored size: 437 Bytes

Contents

require_dependency "openstax/connect/application_controller"

module OpenStax
  module Connect
    module Dev
      class DevController < ApplicationController

        skip_before_filter :authenticate_user!

        before_filter Proc.new{ 
          raise SecurityTransgression unless !Rails.env.production? || 
                                             current_user.is_administrator? 
        }
        
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
openstax_connect-0.0.10 app/controllers/openstax/connect/dev/dev_controller.rb
openstax_connect-0.0.9 app/controllers/openstax/connect/dev/dev_controller.rb
openstax_connect-0.0.8 app/controllers/openstax/connect/dev/dev_controller.rb
openstax_connect-0.0.7 app/controllers/openstax/connect/dev/dev_controller.rb
openstax_connect-0.0.6 app/controllers/openstax/connect/dev/dev_controller.rb
openstax_connect-0.0.5 app/controllers/openstax/connect/dev/dev_controller.rb
openstax_connect-0.0.4 app/controllers/openstax/connect/dev/dev_controller.rb
openstax_connect-0.0.3 app/controllers/openstax/connect/dev/dev_controller.rb