Sha256: 05701e4c7e7a9c766d1a80474ddc1e3fdf1bf404780ede8991a88e194db4911d

Contents?: true

Size: 841 Bytes

Versions: 5

Compression:

Stored size: 841 Bytes

Contents

module Voltron
  module Upload
    module Generators
      module Install
        class ViewsGenerator < Rails::Generators::Base

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

          desc 'Install Voltron Upload views'

          def copy_views
            copy_file 'app/views/voltron/upload/preview/_horizontal_tile.html.erb', Rails.root.join('app', 'views', 'voltron', 'upload', 'preview', '_horizontal_tile.html.erb')
            copy_file 'app/views/voltron/upload/preview/_vertical_tile.html.erb', Rails.root.join('app', 'views', 'voltron', 'upload', 'preview', '_vertical_tile.html.erb')
            copy_file 'app/views/voltron/upload/preview/_progress.html.erb', Rails.root.join('app', 'views', 'voltron', 'upload', 'preview', '_progress.html.erb')
          end

        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voltron-upload-0.2.5 lib/generators/voltron/upload/install/views_generator.rb
voltron-upload-0.2.2 lib/generators/voltron/upload/install/views_generator.rb
voltron-upload-0.2.3 lib/generators/voltron/upload/install/views_generator.rb
voltron-upload-0.2.1 lib/generators/voltron/upload/install/views_generator.rb
voltron-upload-0.2.4 lib/generators/voltron/upload/install/views_generator.rb