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

undefined method at_time #89

Closed
vanboom opened this issue Feb 19, 2021 · 1 comment
Closed

undefined method at_time #89

vanboom opened this issue Feb 19, 2021 · 1 comment

Comments

@vanboom
Copy link

vanboom commented Feb 19, 2021

Using by_star v3.0.0 in Rails 4.1.8

at_time is undefined. between_times works perfectly.

class Job < ActiveRecord::Base
  by_star_field :job_start, :job_end
end
Job.at_time(Time.now)
> NoMethodError: undefined method `at_time` for ...
@radar
Copy link
Owner

radar commented Feb 21, 2021

@vanboom: That method is only available on the latest by_star commit on master, it is not included in the 3.0.0 gem.

Please change your Gemfile to:

gem 'by_star', github: 'radar/by_star'

@radar radar closed this as completed Feb 21, 2021
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

No branches or pull requests

2 participants