diff --git a/lib/hair_trigger/builder.rb b/lib/hair_trigger/builder.rb index ece84c8..fb5db7c 100644 --- a/lib/hair_trigger/builder.rb +++ b/lib/hair_trigger/builder.rb @@ -140,7 +140,7 @@ def self.chainable_methods(*methods) def #{method}(*args) @chained_calls << :#{method} if @triggers || @trigger_group - @errors << ["mysql doesn't support #{method} within a trigger group", :mysql] unless [:name, :where, :all].include?(:#{method}) + @errors << ["mysql doesn't support #{method} within a trigger group", :mysql] unless [:name, :where, :all, :of].include?(:#{method}) end set_#{method}(*args, &(block_given? ? Proc.new : nil)) end