Sha256: 04989b58f69705227f47c50a65a1d646ba7e011cda7dfc8a26a6abee8f4241e5

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

class TemplateManifest
  def self.populate_record(m, rule_name)

    m.directory "app/views/re_rule_definitions/#{rule_name}"
    
    m.template "app/views/re_rule_definitions/template/_new.html.erb",  "app/views/re_rule_definitions/#{rule_name}/_new.html.erb"
    m.template "app/views/re_rule_definitions/template/_edit.html.erb", "app/views/re_rule_definitions/#{rule_name}/_edit.html.erb"
    m.template "app/views/re_rule_definitions/template/_help.html.erb", "app/views/re_rule_definitions/#{rule_name}/_help.html.erb"
    
    m.template "app/rules/template.rb", "app/rules/#{rule_name}.rb"

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rules_engine-0.0.1 rails_generators/template_manifest.rb