Skip to content

Strip adapter check? #127

@gordonbisnor

Description

@gordonbisnor

I noticed that the gem was failing for me with a particular application and I found that stripping whitespace from the adapter check fixed it for me:

    def mysql?
      @config['adapter'].strip =~ /^mysql/
    end

    def postgresql?
      adapter = @config['adapter'].strip
       %{postgresql pg}.include? adapter
    end

Wondering if you thought that this was something worth considering as a PR.

Love the gem by the way, use it on pretty much every Rails application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions