mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Refactoring lodgings
This commit is contained in:
parent
c0cdf3e6e5
commit
580c6c6ed9
11 changed files with 177 additions and 68 deletions
|
|
@ -1,6 +1,9 @@
|
|||
class Lodging < ActiveRecord::Base
|
||||
attr_accessible :name, :description, :photo, :website_link, :venue_id
|
||||
belongs_to :venue
|
||||
|
||||
validates :name, presence: true
|
||||
|
||||
has_attached_file :photo,
|
||||
styles: { thumb: '100x100>', large: '300x300>' }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue