Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Pathname instances in $LOAD_PATH #10

Merged
merged 3 commits into from
Jul 22, 2013

Conversation

robwilliams
Copy link
Contributor

I just ran consistency_fail on my Rails 3.2.13 app using Ruby 2.0.0-p0, which failed with the following message:

../.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/consistency_fail-0.3.1/lib/consistency_fail/models.rb:17
:in `=~': no implicit conversion of Pathname into String (TypeError)

I've checked my $LOAD_PATH and there is one instance of Pathname: #<Pathname:./app/views>.

This may be just me and I could just alter my load path $LOAD_PATH.map!(&:to_s).

If this is common, this pull request should help.

trptcolin added a commit that referenced this pull request Jul 22, 2013
Handle Pathname instances in $LOAD_PATH
@trptcolin trptcolin merged commit e580a9b into trptcolin:master Jul 22, 2013
@trptcolin
Copy link
Owner

Great, thanks!

@robwilliams robwilliams deleted the pathname-type-check branch August 31, 2013 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants