mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
13 lines
237 B
Ruby
13 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
|