Sha256: 0acebe80466d8240ead9cf4e6a48b75a878b5e73c1dd8ed577ab7dd4edb2e17f

Contents?: true

Size: 378 Bytes

Versions: 25

Compression:

Stored size: 378 Bytes

Contents

if defined?(Rails) && Rails::VERSION::MAJOR != 2

  # Rails3 generator invoked with 'rails generate wicked_pdf'
  class WickedPdfGenerator < Rails::Generators::Base
    source_root(File.expand_path(File.dirname(__FILE__) + "/../../generators/wicked_pdf/templates"))
    def copy_initializer
      copy_file 'wicked_pdf.rb', 'config/initializers/wicked_pdf.rb'
    end
  end

end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
wicked_pdf-0.7.5 lib/generators/wicked_pdf_generator.rb
wicked_pdf-0.7.4 lib/generators/wicked_pdf_generator.rb
wicked_pdf-0.7.3 lib/generators/wicked_pdf_generator.rb
wicked_pdf-0.7.2 lib/generators/wicked_pdf_generator.rb
wicked_pdf-0.7.0 lib/generators/wicked_pdf_generator.rb