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

Make Sash optional dependency #287

Merged
merged 2 commits into from
Apr 24, 2018
Merged

Make Sash optional dependency #287

merged 2 commits into from
Apr 24, 2018

Conversation

redtachyons
Copy link

@redtachyons redtachyons commented Feb 14, 2018

Rails 5.1 + add presence validation for belongs_to by default
Fixes #286

@redtachyons redtachyons changed the title Sash is optional dependency MAke Sash optional dependency Feb 14, 2018
@redtachyons
Copy link
Author

ping @tute

@tute
Copy link
Member

tute commented Feb 16, 2018 via email

@Shpigford
Copy link

As a follow up, I forked this with @redtachyons's tweak and it solves the issue well.

@tute
Copy link
Member

tute commented Apr 19, 2018

Thanks for the reminder, I'm back online! :-)

@redtachyons apologies I haven't been able to work on this before. Do you think you can add a regression test for Rails 5.1? Thank you!

@Shpigford
Copy link

@tute Actually...I say that. It actually doesn't seem to be working when creating a new user.

grant_on 'managers#create', badge_id: 1, to: :itself (managers is my equivalent of users)

That doesn't do anything on create.

@Shpigford
Copy link

Basically the same thing mentioned in #285.

@tute tute mentioned this pull request Apr 19, 2018
@redtachyons
Copy link
Author

@tute Will try to add a regression test this weekend

Rails 5.1 and above add automatic validation for belongs_to association.
It is enabled by an initializer added to new projects. Adding that
configuartion in dummy app will reproduce the issue in test case
@redtachyons redtachyons changed the title MAke Sash optional dependency Make Sash optional dependency Apr 23, 2018
@redtachyons
Copy link
Author

@tute done

@merit-gem merit-gem deleted a comment from houndci-bot Apr 24, 2018
@merit-gem merit-gem deleted a comment from houndci-bot Apr 24, 2018
@merit-gem merit-gem deleted a comment from houndci-bot Apr 24, 2018
@tute tute merged commit e3fb177 into merit-gem:master Apr 24, 2018
@tute
Copy link
Member

tute commented Apr 24, 2018

Wonderful, thank you! 😃 👏

@tute
Copy link
Member

tute commented Jul 23, 2018

Released version 3.0.2 with this fix: https://github.com/merit-gem/merit/releases/tag/v3.0.2

Thank you all again!

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.

None yet

5 participants