Parent

Included Modules

Class/Module Index [+]

Quicksearch

Beispiel

Schema Information

Table name: beispiele

id            :integer          not null, primary key
name          :string(255)
desc          :text
lva_id        :integer
created_at    :datetime         not null
updated_at    :datetime         not null
beispieldatei :string(255)

Public Instance Methods

divid() click to toggle source
# File app/models/beispiel.rb, line 50
def divid
  "beispiel_"+id.to_s
end
to_jq_upload() click to toggle source
# File app/models/beispiel.rb, line 38
   def to_jq_upload
  {
    "id" => read_attribute(:id),
    "title" => read_attribute(:title),
    "description" => read_attribute(:desc),
    "name" => read_attribute(:title),
    "size" => beispieldatei.size,
    "url" => beispieldatei.url,
    "thumbnail_url" => beispieldatei.thumb.url,
    "delete_type" => "DELETE" 
   }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.