Sha256: ee2171d32640008b31fed1928188e7bf42222d842751420bc83c6f3cf0544bc0
Contents?: true
Size: 663 Bytes
Versions: 4
Compression:
Stored size: 663 Bytes
Contents
require 'couch/generators/named_base' module Couch::Generators class ScaffoldGenerator < NamedBase def create_view_function Couch::Generators.invoke :view, *invokation_options end def inject_validations Couch::Generators.invoke :validation, *invokation_options end def create_list_function Couch::Generators.invoke :list, *invokation_options end def create_show_function Couch::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
4 entries across 4 versions & 1 rubygems