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

Silence warning in test #15894

Merged
merged 1 commit into from
Jun 24, 2014
Merged

Conversation

sgrif
Copy link
Contributor

@sgrif sgrif commented Jun 24, 2014

We still had one file using column_for_attribute when it could return
nil, causing deprecation warnings in the tests.

@@ -151,7 +151,7 @@ def instantiate_time_object(set_values)
def read_time
# If column is a :time (and not :date or :datetime) there is no need to validate if
# there are year/month/day fields
if column.type == :time
if type.type == :time
Copy link
Member

Choose a reason for hiding this comment

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

looks a bit weird. Didn't you use: cast_type as variable name before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea.

We still had one file using `column_for_attribute` when it could return
nil, causing deprecation warnings in the tests.
senny added a commit that referenced this pull request Jun 24, 2014
@senny senny merged commit 1a299f1 into rails:master Jun 24, 2014
@senny
Copy link
Member

senny commented Jun 24, 2014

thank you 💛

@sgrif sgrif deleted the sg-silence-warning-in-test branch June 24, 2014 13:14
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