Primary Language: Velocity
Frameworks: Cascade CMS
Hosted By: IS&T
Blogs
| # This class calls collection.build on each association that you specify in the @@variables, | |
| # then calls assign_attributes on the attributes specific to this model. | |
| # | |
| # This class was created after I asked this question on stackoverflow. | |
| # http://stackoverflow.com/questions/30109549/rails-preview-update-associations-without-saving-to-database | |
| class PreviewEventUpdate | |
| attr_accessor :params, :nested_params, :event | |
| @@ids_keys = [:audience_ids, :group_ids, :location_ids, :user_ids].freeze |
| #ifndef MAC //if not MAC | |
| #include <GL\glut.h> | |
| #else // MAC includes below | |
| #include <GLUT/glut.h> | |
| #endif | |
| /********************** | |
| ::: UTILITY CLASSES ::: | |
| ***********************/ |
| #include <stdlib.h> | |
| #include <GLUT/glut.h> | |
| #include <math.h> | |
| /************************* | |
| ::: HELPER VARIABLES ::: * | |
| *************************/ | |
| enum FONT_TYPE { |
| #include <stdlib.h> | |
| #include <GLUT/glut.h> | |
| #include <math.h> | |
| /************************* | |
| ::: HELPER VARIABLES ::: * | |
| *************************/ | |
| enum MENU_TYPE { |
View this code at http://livecoding.io/5923109