Sha256: 71d7d03d80500458512ce27c1fdfdc6df8846f2918d9b73fafa101b254bc730e

Contents?: true

Size: 399 Bytes

Versions: 10

Compression:

Stored size: 399 Bytes

Contents

module Breadcrumble
  module Generators
    class ViewsGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../../../../app/views/breadcrumble',  __FILE__)
      desc 'This generator generates breadcrumbs partial template.'

      def generate_views
        name = '_breadcrumb.html.erb'
        copy_file "#{name}", "app/views/breadcrumble/#{name}"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
breadcrumble-3.0.2 lib/generators/breadcrumble/views_generator.rb
breadcrumble-3.0.1 lib/generators/breadcrumble/views_generator.rb
breadcrumble-3.0.0 lib/generators/breadcrumble/views_generator.rb
breadcrumble-3.0.0.beta lib/generators/breadcrumble/views_generator.rb
breadcrumble-2.0.1 lib/generators/breadcrumble/views_generator.rb
breadcrumble-2.0.0 lib/generators/breadcrumble/views_generator.rb
breadcrumble-1.0.1 lib/generators/breadcrumble/views_generator.rb
breadcrumble-1.0.0 lib/generators/breadcrumble/views_generator.rb
breadcrumble-0.0.3 lib/generators/breadcrumble/views_generator.rb
breadcrumble-0.0.1 lib/generators/breadcrumble/views_generator.rb