Sha256: a06669c1839bfee9d64d31080affd8c6e4e7773957070b410eb6b04eceeb3047
Contents?: true
Size: 391 Bytes
Versions: 4
Compression:
Stored size: 391 Bytes
Contents
require 'rails3_artifactor' class HelperGenerator < Rails::Generators::NamedBase include Rails3::Assist:Artifact::Helper desc "Adds method 'help_me' to a Helper" def add_method begin insert_into_helper name do %{def help_me "Help me please!" end} end rescue say "Helper #{name} does not exist. Please create it!", :red end end end
Version data entries
4 entries across 4 versions & 1 rubygems