Class: AttachmentPage

Inherits:
UploadPage show all
Defined in:
lib/soks-view.rb,
lib/soks-model.rb

Instance Attribute Summary

Attributes inherited from Page

#content, #content_lock, #inserted_into, #links_from, #links_lock, #links_to, #name, #revisions

Instance Method Summary collapse

Methods inherited from Page

#<=>, #created_on, #deleted?, empty, #empty?, #initialize, #is_inserted_into, #method_missing, #revise, #revision, #rollback, #score

Constructor Details

This class inherits a constructor from Page

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Page

Instance Method Details

#name_for_indexObject



126
# File 'lib/soks-model.rb', line 126

def name_for_index; 	@name[ 9..-1].strip.downcase end

#textile(view) ⇒ Object



18
19
20
21
22
# File 'lib/soks-view.rb', line 18

def textile( view )
	return "[[#{$MESSAGES[:Create]} #{name} => /edit/#{name} ]]" if empty?
	return content if deleted? 
	%Q{[[ #{name} => #{view.file2(content)} ]]\n} 	
end