lib/blocky/engine.rb in blocky-0.0.11 vs lib/blocky/engine.rb in blocky-1.0.0

- old
+ new

@@ -1,19 +1,19 @@ module Blocky class Engine < ::Rails::Engine isolate_namespace Blocky - # Precompile Blocky Assets - initializer "blocky.assets.precompile" do |app| - app.config.assets.precompile += %w( - blocky/application.css blocky/application.js - blocky/fontawesome-webfont.eot blocky/fontawesome-webfont.svg - blocky/fontawesome-webfont.ttf blocky/fontawesome-webfont.woff - ) - end - # Load Rails Generators generators do require File.join(File.expand_path("../..", __FILE__), "generators", "blocky", "install_generator.rb") + end + + # Add interface for Active Admin (Pro) + # @see http://activeadmin.info + # @see http://github.com/codelation/activeadmin_pro + if defined?(ActiveAdmin) + initializer :blocky do + ActiveAdmin.application.load_paths.unshift File.join(File.expand_path("../..", __FILE__), "blocky", "admin") + end end end end