lib/refinerycms-settings.rb in refinerycms-settings-0.9.9.7 vs lib/refinerycms-settings.rb in refinerycms-settings-0.9.9.8
- old
+ new
@@ -9,9 +9,14 @@
@root ||= Pathname.new(File.expand_path('../../', __FILE__))
end
end
class Engine < ::Rails::Engine
+
+ initializer "serve static assets" do |app|
+ app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
+ end
+
config.after_initialize do
::Refinery::Plugin.register do |plugin|
plugin.name = "refinery_settings"
plugin.url = {:controller => "/admin/refinery_settings"}
plugin.version = %q{0.9.9}