[Taginfo-dev] [joto/taginfo] 3ee5a0: Use .to_i == 1 instead of == '1'

noreply at github.com noreply at github.com
Mon Oct 10 15:07:23 BST 2011


  Branch: refs/heads/master
  Home:   https://github.com/joto/taginfo

  Commit: 3ee5a07b907df9568a5b26093dbe7392886eb508
      https://github.com/joto/taginfo/commit/3ee5a07b907df9568a5b26093dbe7392886eb508
  Author: Jochen Topf <jochen at topf.org>
  Date:   2011-10-10 (Mon, 10 Oct 2011)

  Changed paths:
    M web/lib/api/db.rb
  M web/lib/api/wiki.rb
  M web/lib/utils.rb
  M web/taginfo.rb

  Log Message:
  -----------
  Use .to_i == 1 instead of == '1'

Different Sqlite versions (or ruby sqlite driver versions) seem to return
contents of integer columns in different ways. This should make it work
in all versions.





More information about the Taginfo-dev mailing list