Sha256: c944d92025dbf7efcde08dc9b41259272f3c1218eacc5a74fa756249df294292

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 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
        names = [
          '_breadcrumb.html.erb',
          '_breadcrumb_trails.html.erb'
        ]
        names.each do |name|
          copy_file "#{name}", "app/views/breadcrumble/#{name}"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
breadcrumble-5.0.0 lib/generators/breadcrumble/views_generator.rb
breadcrumble-4.3.1 lib/generators/breadcrumble/views_generator.rb