Permalink
Browse files

Adjust module name to be more consistent with gem name

  • Loading branch information...
1 parent cd3bfbc commit 27bbadcb14dd344afda00f6de5b1c02b08432cbf @tadman committed Aug 25, 2010
Showing with 6 additions and 6 deletions.
  1. +1 −1 VERSION
  2. +1 −1 lib/sequel_simple_callbacks.rb
  3. +1 −1 sequel_simple_callbacks.gemspec
  4. +1 −1 test/models/conditional.rb
  5. +2 −2 test/models/example.rb
View
@@ -1 +1 @@
-0.1.0
+0.1.1
@@ -1,4 +1,4 @@
-module SimpleSequelCallbacks
+module SequelSimpleCallbacks
SPECIAL_HOOKS = [
:before_validation,
:after_validation
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{sequel_simple_callbacks}
- s.version = "0.1.0"
+ s.version = "0.1.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["tadman"]
@@ -9,7 +9,7 @@
class ConditionalModel < Sequel::Model(:conditionals)
include ModelTriggers
- plugin SimpleSequelCallbacks
+ plugin SequelSimpleCallbacks
before_validation do |model|
model.trigger(:before_validation_with_model)
View
@@ -10,9 +10,9 @@
class ExampleModel < Sequel::Model(:examples)
include ModelTriggers
- plugin SimpleSequelCallbacks
+ plugin SequelSimpleCallbacks
- SimpleSequelCallbacks::INSTALLABLE_HOOKS.each do |hook|
+ SequelSimpleCallbacks::INSTALLABLE_HOOKS.each do |hook|
send(hook, :"do_#{hook}", :if => :triggers_active?)
define_method(:"do_#{hook}") do

0 comments on commit 27bbadc

Please sign in to comment.