Sha256: 0fd7f365834e90a7c666ae71e5748c35064416d47c790109b4e1851375c9abd0
Contents?: true
Size: 921 Bytes
Versions: 1
Compression:
Stored size: 921 Bytes
Contents
require 'refinerycms-<%= plural_name %>' module Phoenix module <%= class_name.pluralize %> class Engine < Rails::Engine include Phoenix::Engine isolate_namespace Phoenix engine_name :refinery_<%= plural_name %> initializer "register refinerycms_<%= plural_name %> plugin" do |app| Phoenix::Plugin.register do |plugin| plugin.name = "<%= class_name.pluralize.underscore.downcase %>" plugin.url = {:controller => '/refinery/<%= plural_name %>'} plugin.pathname = root plugin.name = '<%= class_name.pluralize.underscore.downcase %>' plugin.url = '/refinery/<%= plural_name %>' plugin.activity = { :class_name => :'refinery/<%= singular_name %>' } end end config.after_initialize do Phoenix.register_engine(Phoenix::<%= class_name.pluralize %>) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phoenix_core-0.2.0.beta | lib/generators/phoenix/extension/templates/lib/phoenix/plural_name/engine.rb |