Sha256: 384e84a45475dbff53991c466810a45f66a71d0bab0fb340b22fdf41864c5c20

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

require 'sinatra/base'
require 'encrypted_cookie'

module Melodiest
  class Application < Sinatra::Application
    def self.cookie_secret(secret)
      use Rack::Session::EncryptedCookie,
        secret: secret
    end

    # http://www.sinatrarb.com/contrib/reloader.html
    configure :development do
      require 'sinatra/reloader'
      register Sinatra::Reloader
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
melodiest-1.0.0 lib/melodiest.rb