lib/action_callback.rb in action_callback-0.1.0 vs lib/action_callback.rb in action_callback-0.2.0

- old
+ new

@@ -13,5 +13,9 @@ define_callback(callback) alias_method :"#{callback}_filter", :"#{callback}_action" end end end + +if defined?(Rails) + ActiveRecord::Base.extend(ActionCallback) +end \ No newline at end of file