Sha256: db4f9405320f6d7635cef8779d7a55186bb388b19035bf900777e5badf1bb08a
Contents?: true
Size: 952 Bytes
Versions: 1
Compression:
Stored size: 952 Bytes
Contents
module Shipit class Engine < ::Rails::Engine 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( task.js shipit.js shipit.css ) app.config.assets.precompile << proc do |path| path =~ /\Aplugins\/[\-\w]+\.(js|css)\Z/ end ActiveModel::Serializer._root = false ActiveModel::ArraySerializer._root = false ActiveModel::Serializer.include(Engine.routes.url_helpers) if Shipit.github OmniAuth::Strategies::GitHub.configure path_prefix: '/github/auth' app.middleware.use OmniAuth::Builder do provider(:github, Shipit.github_key, Shipit.github_secret, scope: 'email') end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shipit-engine-0.0.1.pre | lib/shipit/engine.rb |