Skip to content

Instantly share code, notes, and snippets.

@ohcibi
Created January 16, 2012 13:44
Show Gist options
  • Save ohcibi/1620937 to your computer and use it in GitHub Desktop.
Save ohcibi/1620937 to your computer and use it in GitHub Desktop.
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