Sha256: 51b73aba98080d814ef454d2b8176995a96a1d5763d6978ec9f5c5a5a97b291b
Contents?: true
Size: 678 Bytes
Versions: 4
Compression:
Stored size: 678 Bytes
Contents
require 'refinery' module Refinery module <%= class_name.pluralize %> class Engine < Rails::Engine initializer "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 = "<%= class_name.pluralize.underscore.downcase %>" plugin.activity = {:class => <%= class_name %>,<% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? and title.name != 'title' %> :title => '<%= title.name %>' <% end %>} end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems