Sha256: 401155f5b61c2cb1b4d5f2b336d39b64fceb80f0dee40e54ea0ec3fba258d4e7
Contents?: true
Size: 367 Bytes
Versions: 1
Compression:
Stored size: 367 Bytes
Contents
module PushType class TaxonomyGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def create_field template 'taxonomy.rb', "app/models/#{ file_name }.rb" template 'taxonomy.html.erb', "app/views/taxonomies/#{ file_name }.html.erb" end hook_for :test_framework, as: :model hide! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
push_type_core-0.7.0 | lib/generators/push_type/taxonomy/taxonomy_generator.rb |