I've been creating several engines for Rails lately and I found that
having an engine class inherited from Rails::Engine is required if you
intend to bundle some Sprockets assets.
So, shouldn't the template for "rails plugin new" change so that "rails
plugin new some-example" would create something like:
lib/some-example.rb:
module SomeExample
class Engine < Rails::Engine
end
end
instead of an empty SomeExample module?
Maybe the "plugin new" could add some option like '--skip-engine' or
disable it automatically if "--skip-sprockets" is used.
Make sense?
Kind regards,
Rodrigo.
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.