Sha256: 12be1d03b1882c70cff05221ecec10b1bc5a373ae4c28f3c4637ff158ed8e054
Contents?: true
Size: 890 Bytes
Versions: 31
Compression:
Stored size: 890 Bytes
Contents
# -p 8888 ENV['RACK_ENV'] ||= 'development' Bundler.setup(:default, ENV['RACK_ENV']) Bundler.require(:default, ENV['RACK_ENV']) # Want to take advantage of some of the Praxis' extensions for: # API field selection (a la GraphQL) - for querying and rendering # API filtering extensions (to add "where clauses") in listings # Views and partial rendering (for ActiveRecord models) require 'praxis/plugins/mapper_plugin' require 'praxis/mapper/active_model_compat' # Want to take advantage of the pagination and sorting extensions as well require 'praxis/plugins/pagination_plugin' # Start the sqlite DB case ENV['RACK_ENV'] when 'test' ActiveRecord::Base.establish_connection( adapter: 'sqlite3', database: ':memory:' ) else ActiveRecord::Base.establish_connection( adapter: 'sqlite3', database: "development.sqlite3" ) end run Praxis::Application.instance.setup
Version data entries
31 entries across 31 versions & 1 rubygems