Skip to content

Commit

Permalink
Improve engine inclusion and whitelist assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Brice Sanchez committed Jul 9, 2015
1 parent 271cfaf commit 21b73be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/refinery/portfolio/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ class Engine < Rails::Engine

engine_name :refinery_portfolio

initializer "register refinerycms_portfolio plugin" do |app|
before_inclusion do
Refinery::Plugin.register do |plugin|
plugin.pathname = root
plugin.name = "portfolio"
plugin.url = { :controller => 'refinery/portfolio/admin/galleries' }
plugin.menu_match = %r{refinery/portfolio(/galleries(/.*)?)?(/items(/.*)?)?$}
end

Rails.application.config.assets.precompile += %w(
refinery/portfolio/admin/galleries.css
)
end

config.after_initialize do
Expand Down

0 comments on commit 21b73be

Please sign in to comment.