Class: TDiary::TDiaryEdit

Inherits:
TDiaryAdmin show all
Defined in:
lib/tdiary/admin.rb

Overview

class TDiaryEdit

show edit diary form

Constant Summary

Constants inherited from TDiaryBase

TDiary::TDiaryBase::DIRTY_COMMENT, TDiary::TDiaryBase::DIRTY_DIARY, TDiary::TDiaryBase::DIRTY_NONE, TDiary::TDiaryBase::DIRTY_REFERER

Instance Attribute Summary

Attributes inherited from TDiaryBase

#cgi, #conf, #cookies, #date, #diaries, #ignore_parser_cache, #rhtml

Instance Method Summary collapse

Methods inherited from TDiaryBase

#[], #calendar, #eval_rhtml, #last_modified

Methods included from ViewHelper

#base_url, #bot?

Constructor Details

#initialize(cgi, rhtm, conf) ⇒ TDiaryEdit

Returns a new instance of TDiaryEdit.



50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/tdiary/admin.rb', line 50

def initialize( cgi, rhtm, conf )
	super

	@io.transaction( @date ) do |diaries|
		@diaries = diaries
		@diary = self[@date]
		if @diary then
			@conf.style = @diary.style
		else
			@diary =  @io.diary_factory( @date, '', '', @conf.style )
		end
		DIRTY_NONE
	end
end

Instance Method Details

#csrf_protection_get_is_okayObject



48
# File 'lib/tdiary/admin.rb', line 48

def csrf_protection_get_is_okay; true; end