Sha256: 2372d75d67f78fa5b2fc88856022310ae13b24caae718fdd4bb00cb65bf52957
Contents?: true
Size: 723 Bytes
Versions: 56
Compression:
Stored size: 723 Bytes
Contents
module Para class NestedFieldsGenerator < Para::Generators::NamedBase include Para::Admin::BaseHelper include Para::Generators::FieldHelpers source_root File.expand_path("../templates", __FILE__) class_option :container, type: :boolean, default: false, :aliases => "-c" def generate_fields template( "_nested_fields.html.haml", "app/views/admin/#{ plural_namespaced_path }/_fields.html.haml" ) end def generate_fields_container template( "../../../../../app/views/para/inputs/nested_many/_container.html.haml", "app/views/admin/#{ plural_namespaced_path }/nested_many/_container.html.haml" ) if options[:container] end end end
Version data entries
56 entries across 56 versions & 1 rubygems