Sha256: 1fe86033abb076bff964c197c6f77280a4b7c7da6f5c1b35ac3a697872be8f17

Contents?: true

Size: 888 Bytes

Versions: 2

Compression:

Stored size: 888 Bytes

Contents

# Copy Blacklight assets to public folder in current app. 
# If you want to do this on application startup, you can
# add this next line to your one of your environment files --
# generally you'd only want to do this in 'development', and can
# add it to environments/development.rb:
#       require File.join(Blacklight.root, "lib", "generators", "blacklight", "assets_generator.rb")
#       Blacklight::AssetsGenerator.start(["--force", "--quiet"])


# Need the requires here so we can call the generator from environment.rb
# as suggested above. 
require 'rails/generators'
require 'rails/generators/base'
module Blacklight
  class AssetsGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)
  
    def assets
      directory("public/images")
      directory("public/stylesheets") 
      directory("public/javascripts") 
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-3.0.0pre6 lib/generators/blacklight/assets_generator.rb
blacklight-3.0.0pre4 lib/generators/blacklight/assets_generator.rb