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