diff --git a/lib/state_machine/integrations/sequel.rb b/lib/state_machine/integrations/sequel.rb index b7d1887e..d520e535 100644 --- a/lib/state_machine/integrations/sequel.rb +++ b/lib/state_machine/integrations/sequel.rb @@ -310,8 +310,14 @@ def reset(object) # Pluralizes the name using the built-in inflector def pluralize(word) - load_inflector - super + word = word.to_s + + if word.respond_to?(:pluralize) + word.pluralize + else + load_inflector + super + end end protected