Sha256: 9a5f9254332415f9138c3e4a9b57fc095471161784102e159cbef7861b7d8d75
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
require 'couch/generators/named_base' module Couch::Generators class ScaffoldGenerator < NamedBase def create_view_function Couch::Generators.invoke :view, name, :behavior => behavior end def inject_validations Couch::Generators.invoke :validation, [name] + attributes, :behavior => behavior end def create_list_function Couch::Generators.invoke :list, [name] + attributes, :behavior => behavior end def create_show_function Couch::Generators.invoke :show, [name] + attributes, :behavior => behavior end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couch-0.0.4 | lib/couch/generators/scaffold/scaffold_generator.rb |