Sha256: 06ad94f42457d3f7651bfc2da2f855d9f4de37823efd5a5650e5254883af0de6
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
class ComplexManifest def self.populate_record(m, rule_name ,rule_class) %W( app/rules app/views/re_rule_definitions/#{rule_name} lib/tasks spec/lib/rules ).each do |dirname| m.directory dirname end %W( ).each do |filename| m.file filename, filename end m.template "app/rules/complex.rb", "app/rules/#{rule_name}.rb" m.template "app/views/re_rule_definitions/complex/_edit.html.erb", "app/views/re_rule_definitions/#{rule_name}/_edit.html.erb" m.template "app/views/re_rule_definitions/complex/_form.html.erb", "app/views/re_rule_definitions/#{rule_name}/_form.html.erb" m.template "app/views/re_rule_definitions/complex/_form_word.html.erb", "app/views/re_rule_definitions/#{rule_name}/_form_word.html.erb" m.template "app/views/re_rule_definitions/complex/_help.html.erb", "app/views/re_rule_definitions/#{rule_name}/_help.html.erb" m.template "app/views/re_rule_definitions/complex/_new.html.erb", "app/views/re_rule_definitions/#{rule_name}/_new.html.erb" m.template "spec/lib/rules/complex_spec.rb", "spec/lib/rules/#{rule_name}_spec.rb" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rules_engine-0.1.6 | rails_generators/manifests/complex.rb |
rules_engine-0.1.5 | rails_generators/manifests/complex.rb |