Skip to content

Commit

Permalink
non-model code should live in lib
Browse files Browse the repository at this point in the history
  • Loading branch information
wuputah committed Feb 16, 2011
1 parent 5684799 commit 6f8e28b
Show file tree
Hide file tree
Showing 27 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ApplicationController < ActionController::Base
self.append_view_path("extras/big_tuna/hooks")
self.append_view_path("lib/big_tuna/hooks")
protect_from_forgery
end
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Application < Rails::Application
# -- all .rb files in that directory are automatically loaded.

# Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += %W(#{config.root}/extras)
config.autoload_paths += %W(#{config.root}/lib)

# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.
Expand Down
4 changes: 2 additions & 2 deletions config/initializers/big_tuna.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Dir[File.join(Rails.root, "extras", "big_tuna", "vcs", "*.rb")].each { |vcs| require_dependency(vcs) }
Dir[File.join(Rails.root, "extras", "big_tuna", "hooks", "*.rb")].each { |hook| require_dependency(hook) }
Dir[File.join(Rails.root, "lib", "big_tuna", "vcs", "*.rb")].each { |vcs| require_dependency(vcs) }
Dir[File.join(Rails.root, "lib", "big_tuna", "hooks", "*.rb")].each { |hook| require_dependency(hook) }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def build_failed(build, config)
end

class Sender < ActionMailer::Base
self.append_view_path("extras/big_tuna/hooks")
self.append_view_path("lib/big_tuna/hooks")
default :from => "info@ci.appelier.com"

def build_failed(build, recipients)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6f8e28b

Please sign in to comment.