Sha256: c5ecd6bed27b0b2e9facd5ebb080e731b5753f37242ccc27df1528e31b36273f

Contents?: true

Size: 459 Bytes

Versions: 4

Compression:

Stored size: 459 Bytes

Contents

TypeStation.configure do |config|

  # config.authenticate_with = Proc.new do
  #   request.env['warden'].try(:authenticate!)
  # end

  # config.authorise_with = Proc.new {}

  # config.current_user = Proc.new do
  #   request.env["warden"].try(:user) || respond_to?(:current_user) && current_user
  # end

  config.authenticate_with = Proc.new do
    true
  end

  config.authorise_with = Proc.new {}

  config.current_user = Proc.new do
    {}
  end  

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
type_station-0.1.3 spec/dummy/config/initializers/config.rb
type_station-0.1.1 spec/dummy/config/initializers/config.rb
type_station-0.0.3 spec/dummy/config/initializers/config.rb
type_station-0.0.2 spec/dummy/config/initializers/config.rb