Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 2 contributors
Commits on Mar 16, 2012
@hibariya hibariya remove unneeded empty_directroy
because directory is created automatically
b06d414
Commits on Apr 02, 2012
@amatsuda Merge pull request #6 from hibariya/fix-generator
Fix generator
75c521d
View
2  lib/generators/rails/decorator_generator.rb
@@ -15,8 +15,6 @@ class DecoratorGenerator < Rails::Generators::NamedBase
DESC
def create_decorator_file
- empty_directory 'app/decorators'
-
template 'decorator.rb', File.join('app/decorators', "#{singular_name}_decorator.rb")
end
View
2  lib/generators/rspec/decorator_generator.rb
@@ -3,8 +3,6 @@ class DecoratorGenerator < ::Rails::Generators::NamedBase
source_root File.expand_path('../templates', __FILE__)
def create_spec_file
- empty_directory 'spec/decorators'
-
template 'decorator_spec.rb', File.join('spec/decorators', "#{singular_name}_decorator_spec.rb")
end
end
View
2  lib/generators/test_unit/decorator_generator.rb
@@ -3,8 +3,6 @@ class DecoratorGenerator < ::Rails::Generators::NamedBase
source_root File.expand_path('../templates', __FILE__)
def create_test_file
- empty_directory 'test/decorators'
-
template 'decorator_test.rb', File.join('test/decorators', "#{singular_name}_decorator_test.rb")
end
end

No commit comments for this range

Something went wrong with that request. Please try again.