Created
August 21, 2015 14:47
-
-
Save fervisa/683acbc1eaf3ca088d52 to your computer and use it in GitHub Desktop.
Get column type from an ActiveRecord model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model.column_for_attribute('title').type |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment