Sha256: 95f4b65a23dcfb4e0e3ad1444a96e71c74e5e949aae4ffa3f9633e29370e29ce
Contents?: true
Size: 882 Bytes
Versions: 2
Compression:
Stored size: 882 Bytes
Contents
# Dependencies contains all required gems, helpers and core configuration class <%= @class_name %> < Sinatra::Application %w[rubygems rack-flash warden sinatra_more bcrypt].each { |gem| require gem } # Required middleware use Rack::Session::Cookie use Rack::Flash # Returns the list of load paths for this sinatra application def self.file_loading_paths ["lib/**/*.rb", "app/helpers/**/*.rb", "app/routes/**/*.rb", "app/models/*.rb"] end # Require all the folders and files necessary to run the application file_loading_paths.each { |load_path| Dir[root_path(load_path)].each { |file| require file } } # Includes all necessary sinatra_more helpers register SinatraMore::MarkupPlugin register SinatraMore::RenderPlugin register SinatraMore::MailerPlugin register SinatraMore::WardenPlugin # Required helpers helpers ViewHelpers end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra_more-0.3.1 | generators/base_app/config/dependencies.rb.tt |
sinatra_more-0.3.0 | generators/base_app/config/dependencies.rb.tt |