Sha256: 630597f5abef67f6cec3a1c5fb00d23ec08c317db277d89609b6f722613a627a

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

class Elt < ActiveRecord::Base
	acts_as_tree :order => "position is not null, position, created_on"
	belongs_to :person
	has_one :mail, :dependent => true
	has_many :attachments, :dependent => true

	# for live_tree
	def name
		subject
	end

	def save
		super
		logger.info 'hello world!!!'
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
parlement-0.1 app/models/elt.rb
parlement-0.2 app/models/elt.rb