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

Add attribute methods "before type casting" #302

Merged
merged 2 commits into from Sep 29, 2018

Conversation

andrykonchin
Copy link
Member

@andrykonchin andrykonchin commented Sep 27, 2018

Added:

  • method attributes_before_type_cast
  • method read_attribte_before_type_cast
  • methods <name>_before_type_cast

Implemented Rails' Active Record Attribute Methods Before Type Cast interface.

It's reasonable as far as we have type casting and models could be used like form objects in view templates.

@andrykonchin andrykonchin changed the title [WIP] Add attribute methods "before type casting" Add attribute methods "before type casting" Sep 28, 2018
Copy link
Member

@pboling pboling left a comment

Choose a reason for hiding this comment

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

👍

@andrykonchin andrykonchin merged commit eb844dc into master Sep 29, 2018
@andrykonchin andrykonchin deleted the add-before-type-cast-getters branch September 29, 2018 08:37
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

2 participants