Allow assignment of user ID

This commit is contained in:
Erik Michaels-Ober 2012-10-19 15:24:46 -07:00
parent c949e54d15
commit 0f0ae8ceaf
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
class Thing < ActiveRecord::Base class Thing < ActiveRecord::Base
include Geokit::Geocoders include Geokit::Geocoders
attr_accessible :name attr_accessible :name, :user_id
validates_uniqueness_of :city_id, allow_nil: true validates_uniqueness_of :city_id, allow_nil: true
validates_presence_of :lat, :lng validates_presence_of :lat, :lng
belongs_to :user belongs_to :user