Sha256: 5435b74e042e4836a7a135f48e42919b7aeadda5a2272ee2394ace94ceb2bcef
Contents?: true
Size: 742 Bytes
Versions: 7
Compression:
Stored size: 742 Bytes
Contents
require 'refinery' module Refinery module <%= class_name.pluralize %><%= 'Engine' if plural_name == singular_name %> 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
7 entries across 7 versions & 1 rubygems