Sha256: f5d18b602885f4316cb4fb2a6aa8f15364f6645f5c5f78e9e0fb97b8c1b2f097

Contents?: true

Size: 671 Bytes

Versions: 1

Compression:

Stored size: 671 Bytes

Contents

# encoding: utf-8

class UnobtrusiveFlashGenerator < Rails::Generator::Base

  def manifest
    record do |m|
      m.directory File.join('public', 'stylesheets')
      m.template 'unobtrusive_flash.css', File.join('public', 'stylesheets', 'unobtrusive_flash.css')

      m.directory File.join('public', 'javascripts')
      m.template 'unobtrusive_flash.js', File.join('public', 'stylesheets', 'unobtrusive_flash.js')
    end
  end

  protected

  def banner
    %{Usage: #{$0} #{spec.name}\nCopies unobtrusive_flash.css and .js to their corresponding locations}
  end
 
  def source_root
    File.expand_path('../../../lib/generators/templates', __FILE__)
  end

end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unobtrusive_flash-0.0.1 generators/unobtrusive_flash/unobtrusive_flash_generator.rb