Git Product home page Git Product logo

checkr's People

Contributors

nzk avatar vijendra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

checkr's Issues

Making it work with rails

Currently this does not work with rails (which is sad :-s).

Due to the following https://github.com/vijendra/checkr/blob/master/lib/checkr/core_ext.rb#L27-L30. There is a conflict with rails lib (see here)

I got the following error

Failure/Error: @user = FactoryGirl.create(:user)
     ActiveRecord::StatementInvalid:
       PG::UndefinedTable: ERROR:  relation "availabilitys" does not exist
       LINE 5:                WHERE a.attrelid = '"availabilitys"'::regclas...
                                                 ^
       :               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                            pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
                       FROM pg_attribute a LEFT JOIN pg_attrdef d
                         ON a.attrelid = d.adrelid AND a.attnum = d.adnum
                      WHERE a.attrelid = '"availabilitys"'::regclass
                        AND a.attnum > 0 AND NOT a.attisdropped
                      ORDER BY a.attnum

We probably should use rails function when available?

checkr gem destroys rails inflections

I don't know how no one has submitted this issue yet, but including the checkr gem in our project causes rails to completely ignore all inflections, which destroys most interaction with our database (i.e. the plural of "property" is now "propertys").

This renders this gem completely unusable. Any help?

Must require manually after gem rename

After renaming the gem to checkr-rb, you now must manually require Checkr to use it.

To reproduce on a fresh install:

  • Add checkr-rb to the Gemfile
$> rails c

rails c> Checkr
NameError: uninitialized constant Checkr

rails c> require 'checkr'
rails c>Checkr
Checkr

It looks like Bundler is no longer autloading. It looks like it autoloads based on gem name. Not sure of the best way to tell it how to load the gem properly.

In the meantime, we may consider updating the Readme to reflect needing to require checkr

require 'checkr'
Checkr.configure do |c|
  c.api_key   = ENV['CHECKR_API_KEY']
end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.