Sha256: a8d957ff2647e0d7c35df38369f75675a707634d7c7c76081a45038c148fb4ef
Contents?: true
Size: 651 Bytes
Versions: 3
Compression:
Stored size: 651 Bytes
Contents
require 'rid/generators/named_base' module Rid::Generators class ScaffoldGenerator < NamedBase def create_view_function Rid::Generators.invoke :view, *invokation_options end def inject_validations Rid::Generators.invoke :validation, *invokation_options end def create_list_function Rid::Generators.invoke :list, *invokation_options end def create_show_function Rid::Generators.invoke :show, *invokation_options end protected # TODO: add default options, like --help, --force etc def invokation_options [[name] + attributes, { :behavior => behavior }] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rid-0.4.0 | lib/rid/generators/scaffold/scaffold_generator.rb |
rid-0.3.1 | lib/rid/generators/scaffold/scaffold_generator.rb |
rid-0.3.0 | lib/rid/generators/scaffold/scaffold_generator.rb |