```ruby
require "graphviz"

module AASM
  class Graph < ::GraphViz
    def initialize(class_name, options = {})
      options = {path: '.'}.merge(options)

      @file_path = File.join(options[:path], "#{class_name.parameterize('_')}_aasm.png")
      super(:G)
    end

    def output
      super png: @file_path
    end
  end
end
```

Change call to parameterize to use Rails 5 syntax
user
```ruby
require "graphviz"

module AASM
  class Graph < ::GraphViz
    def initialize(class_name, options = {})
      options = {path: '.'}.merge(options)

      @file_path = File.join(options[:path], "#{class_name.parameterize(separator: '_')}_aasm.png")
      super(:G)
    end

    def output
      super png: @file_path
    end
  end
end
```
assistant