Module: Platformx::Sinatra
- Defined in:
- lib/platformx.rb
Overview
Start Sinatra Module
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/platformx.rb', line 111 def self.registered(app) app.helpers Platformx::DateHelpers app.helpers Platformx::StripeHelpers app.helpers Platformx::AuthHelpers app.helpers Platformx::FormHelpers app.helpers Platformx::LayoutHelpers app.helpers Platformx::NotifyHelpers app.helpers Platformx::FakerHelpers app.helpers Platformx::TextHelpers app.helpers Platformx::PdfHelpers app.helpers Platformx::S3Helpers # #BugSnag # if Platformx.configuration.bugsnag_api_key != "" # app.Bugsnag.configure do |config| # config.api_key = Platformx.configuration.bugsnag_api_key # end # app.use Bugsnag::Rack # app.enable :raise_errors # end # Configure Better Errors if app.development? app.use BetterErrors::Middleware BetterErrors.application_root = __dir__ end # Configure Rack Protection if app.production? app.use Rack::Protection end end |