Sha256: ef333aa795ca6a85c7fced8aed643332225da1d4d971a53aad7c5a67a28649ca
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
require 'refinerycms-base' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-generators-1.0.1 | lib/generators/refinery_engine/templates/lib/refinerycms-plural_name.rb |