Sha256: 681a2b85136b15938eea88bcbaab1b8374eba53750a61231c8881a8c13d22299

Contents?: true

Size: 377 Bytes

Versions: 14

Compression:

Stored size: 377 Bytes

Contents

if defined?(Rails) && Rails::VERSION::MAJOR > 2
  # Rails3 generator invoked with 'rails generate wisepdf'
  class WisepdfGenerator < Rails::Generators::Base
    source_root(File.expand_path(File.dirname(__FILE__) + "/../../generators/pdf/templates"))
    def copy_initializer
      copy_file 'configure_wisepdf.rb', 'config/initializers/configure_wisepdf.rb'
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
wisepdf-1.2.6 lib/generators/wisepdf_generator.rb
wisepdf-1.2.5 lib/generators/wisepdf_generator.rb
wisepdf-1.2.4 lib/generators/wisepdf_generator.rb
wisepdf-1.2.3 lib/generators/wisepdf_generator.rb
wisepdf-1.2.2 lib/generators/wisepdf_generator.rb
wisepdf-1.2.1 lib/generators/wisepdf_generator.rb
wisepdf-1.2.0 lib/generators/wisepdf_generator.rb
wisepdf-1.1.3 lib/generators/wisepdf_generator.rb
wisepdf-1.1.2 lib/generators/wisepdf_generator.rb
wisepdf-1.1.1 lib/generators/wisepdf_generator.rb
wisepdf-1.1.0 lib/generators/wisepdf_generator.rb
wisepdf-1.0.3 lib/generators/wisepdf_generator.rb
wisepdf-1.0.2 lib/generators/wisepdf_generator.rb
wisepdf-1.0.1 lib/generators/wisepdf_generator.rb