Allow assignment of user ID
This commit is contained in:
parent
c949e54d15
commit
0f0ae8ceaf
|
@ -1,6 +1,6 @@
|
|||
class Thing < ActiveRecord::Base
|
||||
include Geokit::Geocoders
|
||||
attr_accessible :name
|
||||
attr_accessible :name, :user_id
|
||||
validates_uniqueness_of :city_id, allow_nil: true
|
||||
validates_presence_of :lat, :lng
|
||||
belongs_to :user
|
||||
|
|
Loading…
Reference in New Issue