Sha256: 52f5ed41121f9dcc77abb32de210c5bb2860861a7a1be13ff6ddc573aee76adb
Contents?: true
Size: 571 Bytes
Versions: 24
Compression:
Stored size: 571 Bytes
Contents
module Tao module Generators class ScaffoldGenerator < Rails::Generators::NamedBase argument :actions, type: :array, default: %w(index new create edit update show destroy), banner: "action action" hook_for 'view', in: :tao, type: :boolean, default: true hook_for 'controller', in: :tao, type: :boolean, default: true hook_for 'assets', in: :tao, type: :boolean, default: true hook_for 'locale', in: :tao, type: :array do |instance, locale| instance.invoke 'tao:locale', [instance.name] << locale end end end end
Version data entries
24 entries across 24 versions & 1 rubygems