Skip to content

Commit

Permalink
Remove an extra space at the beginning of a line from the generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Nov 20, 2014
1 parent 75ec72c commit 2813178
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/generators/blacklight/install_generator.rb
Expand Up @@ -55,14 +55,13 @@ def generate_blacklight_models
end

# Add Blacklight to the application controller
def inject_blacklight_controller_behavior
# prepend_file("app/controllers/application_controller.rb", "require 'blacklight/controller'\n\n")
def inject_blacklight_controller_behavior
inject_into_class "app/controllers/application_controller.rb", "ApplicationController" do
" # Adds a few additional behaviors into the application controller \n " +
" include Blacklight::Controller\n" +
" # Please be sure to impelement current_user and user_session. Blacklight depends on \n" +
" # these methods in order to perform user specific actions. \n\n" +
" layout 'blacklight'\n\n"
" # Adds a few additional behaviors into the application controller \n" +
" include Blacklight::Controller\n" +
" # Please be sure to impelement current_user and user_session. Blacklight depends on \n" +
" # these methods in order to perform user specific actions. \n\n" +
" layout 'blacklight'\n\n"
end
end

Expand Down

0 comments on commit 2813178

Please sign in to comment.