Sha256: a2190d9d8d93b7c3c65e3870a8b5cb6c0a6a5df66257e81bcc91948a02ddde72
Contents?: true
Size: 560 Bytes
Versions: 18
Compression:
Stored size: 560 Bytes
Contents
# encoding: utf-8 # This hook will be executed in context of current generator object before templater start to generate new files. # You can update context hash and register hooks. Don't forget to use merge! instead of merge, because you are # manipulating with one object, rather than returning new one. # rango create app blog --models=post,tag --controllers=posts,tags hook do |generator, context| models = context[:models] || Array.new controllers = context[:controllers] || Array.new context.merge!(models: models, controllers: controllers) end
Version data entries
18 entries across 16 versions & 1 rubygems