Sha256: 70fedfa5f8b9d358efaee8573bc7fd6e77d5aa258c045176b1aa76511cd104ee

Contents?: true

Size: 454 Bytes

Versions: 54

Compression:

Stored size: 454 Bytes

Contents

module Para
  class TreeItemGenerator < Para::Generators::NamedBase
    include Para::Admin::BaseHelper
    include Para::Generators::FieldHelpers

    source_root File.expand_path('../../../../../app/views/para/admin/resources', __FILE__)

    desc 'Para resource tree item generator'

    def generate_table
      template(
        '_tree_item.html.haml',
        "app/views/admin/#{ plural_namespaced_path }/_tree_item.haml"
      )
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
para-0.12.4 lib/generators/para/tree_item/tree_item_generator.rb
para-0.12.3 lib/generators/para/tree_item/tree_item_generator.rb
para-0.12.2 lib/generators/para/tree_item/tree_item_generator.rb
para-0.12.1 lib/generators/para/tree_item/tree_item_generator.rb
para-0.12.0 lib/generators/para/tree_item/tree_item_generator.rb
para-0.11.4 lib/generators/para/tree_item/tree_item_generator.rb
para-0.11.3 lib/generators/para/tree_item/tree_item_generator.rb
para-0.11.2 lib/generators/para/tree_item/tree_item_generator.rb
para-0.11.1 lib/generators/para/tree_item/tree_item_generator.rb
para-0.11.0 lib/generators/para/tree_item/tree_item_generator.rb
para-0.10.0 lib/generators/para/tree_item/tree_item_generator.rb
para-0.9.4 lib/generators/para/tree_item/tree_item_generator.rb
para-0.9.3.3 lib/generators/para/tree_item/tree_item_generator.rb
para-0.9.3.2 lib/generators/para/tree_item/tree_item_generator.rb
para-0.9.3.1 lib/generators/para/tree_item/tree_item_generator.rb
para-0.9.2 lib/generators/para/tree_item/tree_item_generator.rb
para-0.9.0 lib/generators/para/tree_item/tree_item_generator.rb
para-0.8.15 lib/generators/para/tree_item/tree_item_generator.rb
para-0.8.14 lib/generators/para/tree_item/tree_item_generator.rb
para-0.8.13 lib/generators/para/tree_item/tree_item_generator.rb