mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00

Lots of changes here: * rake draper:install no longer needed * don't generate an ApplicationGenerator by default ** If one exists, the generator respects it * Fixes #53
12 lines
237 B
Ruby
12 lines
237 B
Ruby
require "rails/generators"
|
|
require "rails/generators/rails/resource/resource_generator"
|
|
|
|
module Rails
|
|
module Generators
|
|
ResourceGenerator.class_eval do
|
|
def add_decorator
|
|
invoke "decorator"
|
|
end
|
|
end
|
|
end
|
|
end
|