Sha256: f71fa310ba186def2676cba1e3da42f28c28fb3b9a16bc1b43cedc738efc40f4
Contents?: true
Size: 358 Bytes
Versions: 17
Compression:
Stored size: 358 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 end end
Version data entries
17 entries across 17 versions & 1 rubygems