Sha256: 4bb83c41c19909a4d4a240f945e68bde47df31ac0ad3cef4e1162e828efac71c

Contents?: true

Size: 536 Bytes

Versions: 8

Compression:

Stored size: 536 Bytes

Contents

require 'rails/generators'

module Openseadragon
  class Install < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)
    
    def assets
      copy_file "openseadragon.css", "app/assets/stylesheets/openseadragon.css"
      copy_file "openseadragon.js", "app/assets/javascripts/openseadragon.js"
    end

    def inject_helper
      inject_into_class 'app/controllers/application_controller.rb', ApplicationController do
        "  helper Openseadragon::OpenseadragonHelper\n"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
openseadragon-0.5.0 lib/generators/openseadragon/install_generator.rb
openseadragon-0.4.0 lib/generators/openseadragon/install_generator.rb
openseadragon-0.3.3 lib/generators/openseadragon/install_generator.rb
openseadragon-0.3.2 lib/generators/openseadragon/install_generator.rb
openseadragon-0.3.1 lib/generators/openseadragon/install_generator.rb
openseadragon-0.3.0 lib/generators/openseadragon/install_generator.rb
openseadragon-0.2.1 lib/generators/openseadragon/install_generator.rb
openseadragon-0.2.0 lib/generators/openseadragon/install_generator.rb