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

Update so we can use this on rails 5 #122

Merged
merged 4 commits into from
Jul 20, 2018
Merged

Conversation

chris-hut
Copy link
Contributor

Let's get this working with rails 5! 🎉

References

kbveqvdpwla11

@@ -114,7 +114,11 @@ def initialize(object, method, template_object, default_schedules = nil, options
end

def render
option_tags = add_options(recurring_options_for_select(value(object), @default_schedules, @options), @options, value(object))
if Rails::VERSION::STRING >= '5.2'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to confirm if this is this specific to Rails 5.2+ or should we make this 5+?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like rails 5.2 uses the object directly!
activerecord-hackery/ransack#853

@ZakaryH
Copy link
Contributor

ZakaryH commented Jul 20, 2018

looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants