Introduce strong parameters
This commit is contained in:
parent
38bc2e3c3a
commit
355ecc0ac6
93 changed files with 172 additions and 241 deletions
|
|
@ -3,7 +3,6 @@ class Venue < ActiveRecord::Base
|
|||
has_many :lodgings
|
||||
before_create :generate_guid
|
||||
|
||||
attr_accessible :name, :street, :postalcode, :city, :country, :longitude, :latitude, :description, :website, :photo, :lodgings_attributes, :conference_id
|
||||
validates :name, :street, :city, :country, presence: true
|
||||
|
||||
has_attached_file :photo,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue