Sha256: 06a2ee6ae8d71869f84d70fd62ac4409c518a41056d39d0cd509b39c371c212d
Contents?: true
Size: 394 Bytes
Versions: 2
Compression:
Stored size: 394 Bytes
Contents
module Rails module Generators class DecoratorGenerator < ::Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) check_class_collision suffix: 'Decorator' def create_decorator template 'decorator.rb', File.join('app/decorators', class_path, "#{file_name}_decorator.rb") end hook_for :test_framework end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
light-decorator-1.0.1 | lib/generators/rails/decorator/decorator_generator.rb |
light-decorator-1.0.0 | lib/generators/rails/decorator/decorator_generator.rb |