lib/kentouzu.rb in kentouzu-0.0.8 vs lib/kentouzu.rb in kentouzu-0.0.9

- old
+ new

@@ -5,42 +5,42 @@ require 'kentouzu/controller' require 'kentouzu/has_drafts' require 'kentouzu/draft' module Kentouzu - def self.enabled= value + def self.enabled=(value) Kentouzu.config.enabled = value end def self.enabled? !!Kentouzu.config.enabled end - def self.enabled_for_controller= value + def self.enabled_for_controller=(value) drafts_store[:request_enabled_for_controller] = value end def self.enabled_for_controller? !!drafts_store[:request_enabled_for_controller] end - def self.timestamp_field= field_name + def self.timestamp_field=(field_name) Kentouzu.config.timestamp_field = field_name end def self.timestamp_field Kentouzu.config.timestamp_field end - def self.source= value + def self.source=(value) drafts_store[:source] = value end def self.source drafts_store[:source] end - def self.controller_info= value + def self.controller_info=(value) drafts_store[:controller_info] = value end def self.controller_info drafts_store[:controller_info]