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

Version Path
push_type_core-0.7.0.beta.1 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.6.0 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.6.0.beta.4 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.6.0.beta.3 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.6.0.beta.2 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.6.0.beta.1 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.5.3 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.5.2 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.5.1 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.5.0 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.5.0.alpha.5 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.5.0.alpha.4 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.5.0.alpha.3 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.5.0.alpha.2 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.5.0.alpha.1 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.4.0 lib/generators/push_type/taxonomy/taxonomy_generator.rb
push_type_core-0.4.0.beta.3 lib/generators/push_type/taxonomy/taxonomy_generator.rb