Sha256: 116e3eadbc3b89237efd7b61f485ac9a64c104f63b73112ae5aa81939b3a9974

Contents?: true

Size: 220 Bytes

Versions: 5

Compression:

Stored size: 220 Bytes

Contents

class Faq < ActiveRecord::Base
  translates :question, :answer
  belongs_to :widget_faq

  def clone
    cloned = super
    cloned.translations = translations.clone unless translations.empty?
    return cloned
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
forgeos_cms-1.9.5.rc1 app/models/faq.rb
forgeos_cms-1.9.4 app/models/faq.rb
forgeos_cms-1.9.2 app/models/faq.rb
forgeos_cms-1.9.1 app/models/faq.rb
forgeos_cms-1.9.0 app/models/faq.rb