Sha256: 99b7b8b587465764a7652de4d94ce5ac694e44c33f7be42977c0f9b892ce05d8

Contents?: true

Size: 381 Bytes

Versions: 17

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

require 'rack/contrib'

module Osso
  module AppConfig
    def self.included(klass)
      klass.class_eval do
        use Rack::JSONBodyParser
        use Rack::Session::Cookie, secret: ENV.fetch('SESSION_SECRET')

        error ActiveRecord::RecordNotFound do
          status 404
        end

        set :root, Dir.pwd
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
osso-0.1.2 lib/osso/lib/app_config.rb
osso-0.1.1 lib/osso/lib/app_config.rb
osso-0.1.0 lib/osso/lib/app_config.rb
osso-0.0.11 lib/osso/lib/app_config.rb
osso-0.0.10 lib/osso/lib/app_config.rb
osso-0.0.8 lib/osso/lib/app_config.rb
osso-0.0.7 lib/osso/lib/app_config.rb
osso-0.0.6 lib/osso/lib/app_config.rb
osso-0.0.3.5 lib/osso/lib/app_config.rb
osso-0.0.3.4 lib/osso/lib/app_config.rb
osso-0.0.3.3 lib/osso/lib/app_config.rb
osso-0.0.3.2 lib/osso/lib/app_config.rb
osso-0.0.3.1 lib/osso/lib/app_config.rb
osso-0.0.3 lib/osso/lib/app_config.rb
osso-0.0.2.10 lib/osso/lib/app_config.rb
osso-0.0.2.9 lib/osso/lib/app_config.rb
osso-0.0.2.8 lib/osso/lib/app_config.rb