Class: TDiary::TDiarySaveConf

Inherits:
TDiaryConf show all
Defined in:
lib/tdiary/author_only_base.rb

Overview

class TDiarySaveConf save configuration

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, #request, #rhtml

Instance Method Summary collapse

Methods inherited from TDiaryAuthorOnlyBase

csrf_fetch_verdict, csrf_origin_of, csrf_provenance_ok?, csrf_referer_allowed?

Methods inherited from TDiaryBase

#[], #calendar, #last_modified

Methods included from ViewHelper

#base_url, #bot?

Constructor Details

#initialize(cgi, rhtml, conf) ⇒ TDiarySaveConf

Returns a new instance of TDiarySaveConf.



208
209
210
# File 'lib/tdiary/author_only_base.rb', line 208

def initialize( cgi, rhtml, conf )
  super
end

Instance Method Details

#csrf_protection_get_is_okayObject



206
# File 'lib/tdiary/author_only_base.rb', line 206

def csrf_protection_get_is_okay; false; end

#eval_rhtml(prefix = '') ⇒ Object



212
213
214
215
216
217
218
219
220
221
222
223
# File 'lib/tdiary/author_only_base.rb', line 212

def eval_rhtml( prefix = '' )
  r = super

  begin
    @conf.save
    @io.clear_cache
  rescue
    @error = [$!.dup, $@.dup]
  end

  r
end