Merge branch 'master' of https://github.com/andreassteph/fetsite
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
class Foto < ActiveRecord::Base
|
||||
attr_accessible :datei, :desc, :gallery_id, :title
|
||||
belongs_to :gallery
|
||||
mount_uploader :datei, FotoUploader
|
||||
|
||||
end
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
class Gallery < ActiveRecord::Base
|
||||
attr_accessible :datum, :desc, :name
|
||||
has_many :fotos
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user