Created
May 19, 2011 00:10
-
-
Save mgreenly/979890 to your computer and use it in GitHub Desktop.
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
# undefine the class if it's defined | |
Object.send(:remove_const, :OrderExample) rescue nil | |
# define the class | |
class OrderExample < DataTable | |
set_model Order | |
column :id | |
column :order_number | |
joins :customer do | |
column :first_name | |
end | |
column :memo | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment