lib/generators/blacklight_browse_nearby_generator.rb
# insert require statements into application level CSS/JS manifestes.
insert require statements into application level CSS/JS manifestes.
insert require statements into application level CSS / JS manifestes .
def inject_blacklight_browse_nearby_require
      unless IO.read("app/assets/stylesheets/application.css").include?("Required by BlacklightBrowseNearby")
        insert_into_file "app/assets/stylesheets/application.css", :after => "/*" do
  %q{
 * Required by BlacklightBrowseNearby:
 *= require blacklight_browse_nearby/blacklight_browse_nearby
 *}
        end
      end
      unless IO.read("app/assets/javascripts/application.js").include?("Required by BlacklightBrowseNearby")
        insert_into_file "app/assets/javascripts/application.js", :before => "//= require_tree ." do
%q{// Required by BlacklightBrowseNearby:
//= require blacklight_browse_nearby/blacklight_browse_nearby
}
        end
      end
    end
def inject_blacklight_browse_nearby_require unless IO . read ( "app/assets/stylesheets/application.css" ) . include? ( "Required by BlacklightBrowseNearby" ) insert_into_file "app/assets/stylesheets/application.css" , :after => "/*" do %q{
 * Required by BlacklightBrowseNearby:
 *= require blacklight_browse_nearby/blacklight_browse_nearby
 *} end end unless IO . read ( "app/assets/javascripts/application.js" ) . include? ( "Required by BlacklightBrowseNearby" ) insert_into_file "app/assets/javascripts/application.js" , :before => "//= require_tree ." do %q{// Required by BlacklightBrowseNearby:
//= require blacklight_browse_nearby/blacklight_browse_nearby
} end end end
insert require statements into application level CSS/JS manifestes.
insert require statements into application level CSS / JS manifestes .