diff options
author | Colin MacKenzie IV <sinisterchipmunk@gmail.com> | 2011-11-02 09:00:18 -0400 |
---|---|---|
committer | Colin MacKenzie IV <sinisterchipmunk@gmail.com> | 2011-11-02 09:00:18 -0400 |
commit | 5745a5e85e1900c52d169f79ec0802060e110e21 (patch) | |
tree | 4c056a3a29a05c4b8085b7869e7c70527d46a2c9 /railties/test/fixtures/lib/generators | |
parent | 836b6208504a761d6e0427b2709d0a87dfe98e06 (diff) | |
download | rails-5745a5e85e1900c52d169f79ec0802060e110e21.tar.gz rails-5745a5e85e1900c52d169f79ec0802060e110e21.tar.bz2 rails-5745a5e85e1900c52d169f79ec0802060e110e21.zip |
treat USAGE as an ERB template
Diffstat (limited to 'railties/test/fixtures/lib/generators')
-rw-r--r-- | railties/test/fixtures/lib/generators/usage_template/USAGE | 1 | ||||
-rw-r--r-- | railties/test/fixtures/lib/generators/usage_template/usage_template_generator.rb | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/fixtures/lib/generators/usage_template/USAGE b/railties/test/fixtures/lib/generators/usage_template/USAGE new file mode 100644 index 0000000000..bcd63c52e2 --- /dev/null +++ b/railties/test/fixtures/lib/generators/usage_template/USAGE @@ -0,0 +1 @@ +:: <%= 1 + 1 %> ::
\ No newline at end of file diff --git a/railties/test/fixtures/lib/generators/usage_template/usage_template_generator.rb b/railties/test/fixtures/lib/generators/usage_template/usage_template_generator.rb new file mode 100644 index 0000000000..078b0f9412 --- /dev/null +++ b/railties/test/fixtures/lib/generators/usage_template/usage_template_generator.rb @@ -0,0 +1,5 @@ +require 'rails/generators' + +class UsageTemplateGenerator < Rails::Generators::Base + source_root File.expand_path("templates", File.dirname(__FILE__)) +end |