Sha256: b5925aaee69c50261b1288a6d13546f6f3f3bb10810d2119b1f8a392f606ceae
Contents?: true
Size: 1.24 KB
Versions: 10
Compression:
Stored size: 1.24 KB
Contents
module Shipit class Engine < ::Rails::Engine isolate_namespace Shipit paths['app/models'] << 'app/serializers' << 'app/serializers/concerns' initializer 'shipit.config' do |app| Rails.application.routes.default_url_options[:host] = Shipit.host Shipit::Engine.routes.default_url_options[:host] = Shipit.host app.config.assets.precompile += %w( favicon.ico task.js shipit.js shipit.css ) app.config.assets.precompile << proc do |path| path =~ /\Aplugins\/[\-\w]+\.(js|css)\Z/ end ActionDispatch::ExceptionWrapper.rescue_responses[Shipit::TaskDefinition::NotFound.name] = :not_found ActiveModel::Serializer._root = false ActiveModel::ArraySerializer._root = false ActiveModel::Serializer.include(Engine.routes.url_helpers) if Shipit.github_oauth_credentials OmniAuth::Strategies::GitHub.configure path_prefix: '/github/auth' app.middleware.use OmniAuth::Builder do provider( :github, Shipit.github_oauth_id, Shipit.github_oauth_secret, scope: 'email,repo_deployment', client_options: Shipit.github_oauth_options, ) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems