Sha256: 2af3c184e07e2b7af75d3928227c6d1a555938558da4efc6d74d58db6f8debb9
Contents?: true
Size: 439 Bytes
Versions: 20
Compression:
Stored size: 439 Bytes
Contents
The following are some general tips for adding custom rake tasks and generators to your Rails 3 plugin. ## Custom rake tasks <pre> # my_plugin/lib/railtie.rb module MyPlugin class Railtie < ::Rails::Railtie rake_tasks do load "my_plugin/railties/tasks.rake" end end end </pre> <pre> # my_plugin/lib/railties/tasks.rake desc "Talk about being in my_gem" task :my_gem do puts "You're in my_gem" end </pre>
Version data entries
20 entries across 20 versions & 2 rubygems