Sha256: adab0a31d6c5cd990f992d6311b6ee5612f01637c793c64d2c756869d56d0341

Contents?: true

Size: 910 Bytes

Versions: 2

Compression:

Stored size: 910 Bytes

Contents

module Voltron
  module Crop
    module Generators
      module Install
        class AssetsGenerator < Rails::Generators::Base

          source_root File.expand_path('../../../../../../', __FILE__)

          desc 'Install Voltron Crop assets'

          def copy_javascripts_assets
            copy_file 'app/assets/javascripts/voltron-crop.js', Rails.root.join('app', 'assets', 'javascripts', 'voltron-crop.js')
            copy_file 'app/assets/javascripts/cropit.js', Rails.root.join('app', 'assets', 'javascripts', 'cropit.js')
            copy_file 'app/assets/javascripts/simple-slider.js', Rails.root.join('app', 'assets', 'javascripts', 'simple-slider.js')
          end

          def copy_stylesheets_assets
            copy_file 'app/assets/stylesheets/voltron-crop.scss', Rails.root.join('app', 'assets', 'stylesheets', 'voltron-crop.scss')
          end

        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
voltron-crop-0.1.4 lib/generators/voltron/crop/install/assets_generator.rb
voltron-crop-0.1.3 lib/generators/voltron/crop/install/assets_generator.rb