Created
September 30, 2011 17:02
-
-
Save seabre/1254358 to your computer and use it in GitHub Desktop.
Get Columns From Table Formatted For Configuration in Rails Admin
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.columns.map {|c| puts "field :#{c.name}"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment