Created
January 16, 2012 13:44
-
-
Save ohcibi/1620937 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
class PageWidget < ActiveRecord::Base | |
attr_accessible :width, :height, :offset_x, :offset_y, :widget_id | |
validates :page_id, presence: true | |
validates :widget_id, presence: true | |
belongs_to :page | |
belongs_to :widget | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment