Sha256: 45567fefde0d5a66fc1e159762860251af8fd8cbc7f9f4cb301e23433e33fa14

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', 'javascripts', '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.2 generators/unobtrusive_flash/unobtrusive_flash_generator.rb