Sha256: 630eb216a1a0a301a7b2a17b75e489071178dc4bd73768257b354f93554f72b4
Contents?: true
Size: 888 Bytes
Versions: 4
Compression:
Stored size: 888 Bytes
Contents
# Copy BlacklightRangeLimit 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(BlacklightRangeLimit.root, "lib", "generators", "blacklight", "assets_generator.rb") # BlacklightRangeLimit::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 BlacklightRangeLimit class AssetsGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def assets directory("public/stylesheets") directory("public/javascripts") end end end
Version data entries
4 entries across 4 versions & 1 rubygems