Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed module name

git-svn-id: https://svn.thoughtbot.com/plugins/when/trunk@327 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
  • Loading branch information...
commit 4944acffdb1f6279839b9cf72c0195b220627db8 1 parent 36eb979
jcarroll authored
Showing with 5 additions and 4 deletions.
  1. +2 −1  lib/callbacks.rb
  2. +1 −1  lib/filters.rb
  3. +2 −2 lib/when.rb
View
3  lib/callbacks.rb
@@ -1,4 +1,4 @@
-module ActiveRecordHook
+module When
module Callbacks
def self.included(klass)
@@ -22,6 +22,7 @@ def #{callback}_with_conditions(*callbacks)
end
alias_method_chain :#{callback}, :conditions
END
+
class_eval src, __FILE__, __LINE__
end
end
View
2  lib/filters.rb
@@ -1,4 +1,4 @@
-module ActionControllerHook
+module When
module Filters
def self.included(klass)
View
4 lib/when.rb
@@ -1,5 +1,5 @@
require File.join(File.dirname(__FILE__), 'callbacks')
require File.join(File.dirname(__FILE__), 'filters')
-ActiveRecord::Base.send :include, ActiveRecordHook::Callbacks
-ActionController::Base.send :include, ActionControllerHook::Filters
+ActiveRecord::Base.send :include, When::Callbacks
+ActionController::Base.send :include, When::Filters
Please sign in to comment.
Something went wrong with that request. Please try again.