lib/fatcow/railtie.rb in fatcow-0.1.6 vs lib/fatcow/railtie.rb in fatcow-0.1.7
- old
+ new
@@ -1,12 +1,14 @@
# frozen_string_literal: true
require_relative 'helpers'
module Fatcow
- class Railtie < ::Rails::Railtie
- config.before_initialize do
- config.assets.paths << ASSET_ROOT
+ class Railtie < ::Rails::Engine
+ isolate_namespace Fatcow
+
+ initializer "fatcow.assets.precompile" do |app|
+ app.config.assets.precompile << 'fatcow/application.css'
end
initializer "fatcow.view_helpers" do
ActiveSupport.on_load(:action_view) do
include Fatcow::Helpers