infopark_reactor 1.26.1 → 1.27.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +25 -0
  3. data/.rubocop_todo.yml +363 -0
  4. data/Rakefile +10 -13
  5. data/app/models/rails_connector/abstract_obj.rb +2 -1
  6. data/config/routes.rb +0 -1
  7. data/infopark_reactor.gemspec +16 -15
  8. data/lib/generators/cm/migration/migration_generator.rb +4 -8
  9. data/lib/infopark_reactor.rb +43 -69
  10. data/lib/reactor/already_released.rb +1 -2
  11. data/lib/reactor/attributes.rb +92 -268
  12. data/lib/reactor/attributes/date_serializer.rb +20 -16
  13. data/lib/reactor/attributes/html_serializer.rb +6 -5
  14. data/lib/reactor/attributes/link_list_extender.rb +10 -8
  15. data/lib/reactor/attributes/link_list_from_accessor.rb +2 -1
  16. data/lib/reactor/attributes/link_list_from_attr_values.rb +2 -1
  17. data/lib/reactor/attributes/link_list_serializer.rb +8 -7
  18. data/lib/reactor/attributes_handlers.rb +164 -0
  19. data/lib/reactor/cache/permission.rb +6 -9
  20. data/lib/reactor/cache/user.rb +3 -6
  21. data/lib/reactor/cm/attribute.rb +16 -16
  22. data/lib/reactor/cm/attribute_group.rb +18 -21
  23. data/lib/reactor/cm/blob_too_small_error.rb +2 -2
  24. data/lib/reactor/cm/bridge.rb +6 -9
  25. data/lib/reactor/cm/channel.rb +3 -4
  26. data/lib/reactor/cm/editorial_group.rb +2 -9
  27. data/lib/reactor/cm/group.rb +30 -43
  28. data/lib/reactor/cm/job.rb +23 -25
  29. data/lib/reactor/cm/language.rb +21 -22
  30. data/lib/reactor/cm/link.rb +38 -40
  31. data/lib/reactor/cm/live_group.rb +2 -9
  32. data/lib/reactor/cm/log_entry.rb +22 -21
  33. data/lib/reactor/cm/missing_credentials.rb +3 -2
  34. data/lib/reactor/cm/multi_xml_request.rb +22 -25
  35. data/lib/reactor/cm/obj.rb +159 -154
  36. data/lib/reactor/cm/obj_class.rb +52 -51
  37. data/lib/reactor/cm/object_base.rb +26 -21
  38. data/lib/reactor/cm/permissions.rb +7 -7
  39. data/lib/reactor/cm/user.rb +43 -51
  40. data/lib/reactor/cm/workflow.rb +11 -12
  41. data/lib/reactor/cm/xml_attribute.rb +10 -19
  42. data/lib/reactor/cm/xml_markup.rb +7 -10
  43. data/lib/reactor/cm/xml_multi_request_error.rb +1 -3
  44. data/lib/reactor/cm/xml_request.rb +21 -29
  45. data/lib/reactor/cm/xml_request_error.rb +1 -3
  46. data/lib/reactor/cm/xml_response.rb +8 -16
  47. data/lib/reactor/cm/xml_single_request_error.rb +3 -5
  48. data/lib/reactor/configuration.rb +1 -3
  49. data/lib/reactor/engine.rb +5 -10
  50. data/lib/reactor/legacy.rb +6 -7
  51. data/lib/reactor/link/external.rb +8 -5
  52. data/lib/reactor/link/internal.rb +8 -5
  53. data/lib/reactor/link/temporary_link.rb +16 -17
  54. data/lib/reactor/main.rb +11 -15
  55. data/lib/reactor/migration.rb +52 -53
  56. data/lib/reactor/no_working_version.rb +1 -2
  57. data/lib/reactor/not_permitted.rb +1 -2
  58. data/lib/reactor/permission.rb +36 -38
  59. data/lib/reactor/persistence.rb +104 -178
  60. data/lib/reactor/plans/common_attribute.rb +7 -7
  61. data/lib/reactor/plans/common_attribute_group.rb +6 -6
  62. data/lib/reactor/plans/common_channel.rb +6 -6
  63. data/lib/reactor/plans/common_group.rb +7 -14
  64. data/lib/reactor/plans/common_job.rb +6 -6
  65. data/lib/reactor/plans/common_obj_class.rb +11 -11
  66. data/lib/reactor/plans/create_attribute.rb +1 -3
  67. data/lib/reactor/plans/create_attribute_group.rb +1 -3
  68. data/lib/reactor/plans/create_channel.rb +2 -3
  69. data/lib/reactor/plans/create_group.rb +3 -10
  70. data/lib/reactor/plans/create_job.rb +3 -4
  71. data/lib/reactor/plans/create_obj.rb +12 -14
  72. data/lib/reactor/plans/create_obj_class.rb +1 -2
  73. data/lib/reactor/plans/delete_attribute.rb +1 -3
  74. data/lib/reactor/plans/delete_attribute_group.rb +2 -4
  75. data/lib/reactor/plans/delete_channel.rb +3 -6
  76. data/lib/reactor/plans/delete_group.rb +2 -9
  77. data/lib/reactor/plans/delete_job.rb +3 -5
  78. data/lib/reactor/plans/delete_obj.rb +3 -4
  79. data/lib/reactor/plans/delete_obj_class.rb +1 -2
  80. data/lib/reactor/plans/prepared.rb +3 -4
  81. data/lib/reactor/plans/rename_group.rb +4 -11
  82. data/lib/reactor/plans/rename_obj_class.rb +1 -2
  83. data/lib/reactor/plans/update_attribute.rb +1 -3
  84. data/lib/reactor/plans/update_attribute_group.rb +2 -4
  85. data/lib/reactor/plans/update_group.rb +2 -9
  86. data/lib/reactor/plans/update_job.rb +4 -8
  87. data/lib/reactor/plans/update_obj.rb +6 -7
  88. data/lib/reactor/plans/update_obj_class.rb +0 -2
  89. data/lib/reactor/rc_independent.rb +0 -1
  90. data/lib/reactor/session.rb +27 -31
  91. data/lib/reactor/session/observers.rb +3 -5
  92. data/lib/reactor/session/user.rb +6 -7
  93. data/lib/reactor/session_helper/auth_filter.rb +9 -0
  94. data/lib/reactor/session_helper/auth_helper.rb +24 -0
  95. data/lib/reactor/session_helper/rsession_helper.rb +16 -0
  96. data/lib/reactor/session_helper/session_state.rb +31 -0
  97. data/lib/reactor/streaming_upload.rb +0 -1
  98. data/lib/reactor/sudo.rb +2 -3
  99. data/lib/reactor/support/link_matcher.rb +8 -7
  100. data/lib/reactor/tools/migrator.rb +30 -35
  101. data/lib/reactor/tools/response_handler/xml_attribute.rb +27 -33
  102. data/lib/reactor/tools/smart_xml_logger.rb +20 -22
  103. data/lib/reactor/tools/sower.rb +22 -23
  104. data/lib/reactor/tools/uploader.rb +12 -17
  105. data/lib/reactor/tools/versioner.rb +29 -30
  106. data/lib/reactor/tools/where_query.rb +11 -14
  107. data/lib/reactor/tools/workflow_generator.rb +26 -28
  108. data/lib/reactor/tools/xml_attributes.rb +7 -14
  109. data/lib/reactor/tools/xpath_extractor.rb +2 -1
  110. data/lib/reactor/validations.rb +20 -16
  111. data/lib/reactor/version.rb +1 -2
  112. data/lib/reactor/workflow.rb +10 -33
  113. data/lib/reactor/workflow/comment.rb +28 -0
  114. data/lib/reactor/workflow/empty.rb +0 -1
  115. data/lib/reactor/workflow/standard.rb +4 -3
  116. data/lib/tasks/cm_migrate.rake +3 -3
  117. data/lib/tasks/cm_seeds.rake +9 -16
  118. metadata +64 -28
  119. data/app/models/rails_connector/abstract_model.rb +0 -7
  120. data/app/models/rails_connector/attribute.rb +0 -94
  121. data/app/models/rails_connector/blob_mapping.rb +0 -16
  122. data/app/models/rails_connector/channel.rb +0 -41
  123. data/app/models/rails_connector/content.rb +0 -12
  124. data/app/models/rails_connector/job.rb +0 -14
  125. data/app/models/rails_connector/obj_class.rb +0 -158
  126. data/app/models/rails_connector/obj_class_attr.rb +0 -5
  127. data/app/models/rails_connector/object_with_meta_data.rb +0 -18
  128. data/lib/rails_connector/meta/eager_loader.rb +0 -91
  129. data/lib/reactor/rails_connector_meta.rb +0 -149
  130. data/lib/reactor/session_helper.rb +0 -72
@@ -1,8 +1,6 @@
1
- # -*- encoding : utf-8 -*-
2
- require 'reactor/cm/channel'
3
- require 'reactor/plans/common_channel'
1
+ require "reactor/cm/channel"
2
+ require "reactor/plans/common_channel"
4
3
  module Reactor
5
-
6
4
  module Plans
7
5
  class DeleteChannel < CommonChannel
8
6
  def initialize(*args)
@@ -13,13 +11,12 @@ module Reactor
13
11
 
14
12
  def prepare!
15
13
  error("name is nil") if @name.nil?
16
- error("channel #{@name} does not exist") if not Reactor::Cm::Channel.exists?(@name)
14
+ error("channel #{@name} does not exist") unless Reactor::Cm::Channel.exists?(@name)
17
15
  end
18
16
 
19
17
  def migrate!
20
18
  Reactor::Cm::Channel.get(@name).delete!
21
19
  end
22
-
23
20
  end
24
21
  end
25
22
  end
@@ -1,19 +1,15 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
-
4
2
  module Plans
5
-
6
3
  class DeleteGroup < CommonGroup
7
-
8
4
  def initialize(*args)
9
5
  super()
10
6
 
11
- (name, _), options = separate_arguments(*args)
7
+ (name,), options = separate_arguments(*args)
12
8
  @name = name || options[:name]
13
9
  end
14
10
 
15
11
  def prepare!
16
- error('name is nil') if @name.nil?
12
+ error("name is nil") if @name.nil?
17
13
  error("group #{@name} does not exist") unless Reactor::Cm::Group.exists?(@name)
18
14
  end
19
15
 
@@ -21,9 +17,6 @@ module Reactor
21
17
  group = Reactor::Cm::Group.get(@name)
22
18
  group.delete!
23
19
  end
24
-
25
20
  end
26
-
27
21
  end
28
-
29
22
  end
@@ -1,6 +1,5 @@
1
- # -*- encoding : utf-8 -*-
2
- require 'reactor/cm/job'
3
- require 'reactor/plans/common_job'
1
+ require "reactor/cm/job"
2
+ require "reactor/plans/common_job"
4
3
 
5
4
  module Reactor
6
5
  module Plans
@@ -13,13 +12,12 @@ module Reactor
13
12
 
14
13
  def prepare!
15
14
  error("name is nil") if @name.nil?
16
- error("job #{@name} does not exist") if not Reactor::Cm::Job.exists?(@name)
15
+ error("job #{@name} does not exist") unless Reactor::Cm::Job.exists?(@name)
17
16
  end
18
17
 
19
18
  def migrate!
20
19
  Reactor::Cm::Job.delete!(@name)
21
20
  end
22
-
23
21
  end
24
22
  end
25
23
  end
@@ -1,17 +1,16 @@
1
- # -*- encoding : utf-8 -*-
2
- require 'reactor/plans/prepared'
1
+ require "reactor/plans/prepared"
3
2
 
4
3
  module Reactor
5
4
  module Plans
6
5
  class DeleteObj
7
6
  include Prepared
8
7
 
9
- def initialize(opts={})
8
+ def initialize(opts = {})
10
9
  @key = opts[:obj_id] || opts[:path]
11
10
  end
12
11
 
13
12
  def prepare!
14
- error("object (key=#{@key}) not found") if not Reactor::Cm::Obj.exists?(@key)
13
+ error("object (key=#{@key}) not found") unless Reactor::Cm::Obj.exists?(@key)
15
14
  end
16
15
 
17
16
  def migrate!
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
2
  module Plans
4
3
  class DeleteObjClass < CommonObjClass
@@ -11,7 +10,7 @@ module Reactor
11
10
  end
12
11
 
13
12
  def prepare!
14
- error("objClass #{@name} not found") if not Reactor::Cm::ObjClass.exists?(@name)
13
+ error("objClass #{@name} not found") unless Reactor::Cm::ObjClass.exists?(@name)
15
14
  end
16
15
 
17
16
  def migrate!
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
2
  module Plans
4
3
  module Prepared
@@ -7,9 +6,9 @@ module Reactor
7
6
  end
8
7
 
9
8
  def separate_arguments(*args)
10
- array_args = args.select {|a| !a.is_a?(Hash) }
11
- hash_args = args.select {|a| a.is_a?(Hash) }.reduce({}, &:merge)
12
- return array_args, hash_args
9
+ array_args = args.select { |a| !a.is_a?(Hash) }
10
+ hash_args = args.select { |a| a.is_a?(Hash) }.reduce({}, &:merge)
11
+ [array_args, hash_args]
13
12
  end
14
13
  end
15
14
  end
@@ -1,10 +1,6 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
-
4
2
  module Plans
5
-
6
3
  class RenameGroup
7
-
8
4
  include Prepared
9
5
 
10
6
  def initialize(*args)
@@ -15,19 +11,16 @@ module Reactor
15
11
  end
16
12
 
17
13
  def prepare!
18
- error('from is nil') if @from.nil?
19
- error('to is nil') if @to.nil?
20
- error('from does not exist') unless Reactor::Cm::Group.exists?(@from)
21
- error('to does exist') if Reactor::Cm::Group.exists?(@to)
14
+ error("from is nil") if @from.nil?
15
+ error("to is nil") if @to.nil?
16
+ error("from does not exist") unless Reactor::Cm::Group.exists?(@from)
17
+ error("to does exist") if Reactor::Cm::Group.exists?(@to)
22
18
  end
23
19
 
24
20
  def migrate!
25
21
  group = Reactor::Cm::Group.get(@from)
26
22
  group.rename!(@to)
27
23
  end
28
-
29
24
  end
30
-
31
25
  end
32
-
33
26
  end
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
2
  module Plans
4
3
  class RenameObjClass
@@ -13,7 +12,7 @@ module Reactor
13
12
  def prepare!
14
13
  error("from is nil") if @from.nil?
15
14
  error("to is nil") if @to.nil?
16
- error("from does not exist") if not Reactor::Cm::ObjClass.exists?(@from)
15
+ error("from does not exist") unless Reactor::Cm::ObjClass.exists?(@from)
17
16
  error("to does exist") if Reactor::Cm::ObjClass.exists?(@to)
18
17
  end
19
18
 
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
2
  module Plans
4
3
  class UpdateAttribute < CommonAttribute
@@ -10,7 +9,7 @@ module Reactor
10
9
 
11
10
  def prepapre!
12
11
  error("name is nil") if @name.nil?
13
- error("attribute #{@name} not found") if not Reactor::Cm::Attribute.exists?(@name)
12
+ error("attribute #{@name} not found") unless Reactor::Cm::Attribute.exists?(@name)
14
13
  prepare_params!(nil)
15
14
  end
16
15
 
@@ -18,7 +17,6 @@ module Reactor
18
17
  attrib = Reactor::Cm::Attribute.get(@name)
19
18
  migrate_params!(attrib)
20
19
  end
21
-
22
20
  end
23
21
  end
24
22
  end
@@ -1,5 +1,4 @@
1
- # -*- encoding : utf-8 -*-
2
- require 'reactor/plans/common_attribute_group'
1
+ require "reactor/plans/common_attribute_group"
3
2
 
4
3
  module Reactor
5
4
  module Plans
@@ -15,7 +14,7 @@ module Reactor
15
14
  def prepapre!
16
15
  error("name ist nil") if @name.nil?
17
16
  error("obj_class is nil") if @obj_class.nil?
18
- error("attribute group #{@pk} does not exist") if not Reactor::Cm::AttributeGroup.exists?(ok)
17
+ error("attribute group #{@pk} does not exist") unless Reactor::Cm::AttributeGroup.exists?(ok)
19
18
  prepare_params!(nil)
20
19
  end
21
20
 
@@ -23,7 +22,6 @@ module Reactor
23
22
  attrib = Reactor::Cm::AttributeGroup.get(@pk)
24
23
  migrate_params!(attrib)
25
24
  end
26
-
27
25
  end
28
26
  end
29
27
  end
@@ -1,19 +1,15 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
-
4
2
  module Plans
5
-
6
3
  class UpdateGroup < CommonGroup
7
-
8
4
  def initialize(*args)
9
5
  super()
10
6
 
11
- (name, _), options = separate_arguments(*args)
7
+ (name,), options = separate_arguments(*args)
12
8
  @name = name || options[:name]
13
9
  end
14
10
 
15
11
  def prepapre!
16
- error('name is nil') if @name.nil?
12
+ error("name is nil") if @name.nil?
17
13
  error("group #{@name} not found") unless Reactor::Cm::Group.exists?(@name)
18
14
 
19
15
  prepare_params!(nil)
@@ -23,9 +19,6 @@ module Reactor
23
19
  group = Reactor::Cm::Group.get(@name)
24
20
  migrate_params!(group)
25
21
  end
26
-
27
22
  end
28
-
29
23
  end
30
-
31
24
  end
@@ -1,6 +1,5 @@
1
- # -*- encoding : utf-8 -*-
2
- require 'reactor/cm/job'
3
- require 'reactor/plans/common_job'
1
+ require "reactor/cm/job"
2
+ require "reactor/plans/common_job"
4
3
 
5
4
  module Reactor
6
5
  module Plans
@@ -8,12 +7,12 @@ module Reactor
8
7
  def initialize(*args)
9
8
  super()
10
9
 
11
- (name, _), options = separate_arguments(*args)
10
+ (name,), options = separate_arguments(*args)
12
11
  @name = name || options[:name]
13
12
  end
14
13
 
15
14
  def prepapre!
16
- error('name is nil') if @name.nil?
15
+ error("name is nil") if @name.nil?
17
16
  error("job #{@name} not found") unless Reactor::Cm::Job.exists?(@name)
18
17
 
19
18
  prepare_params!(nil)
@@ -23,9 +22,6 @@ module Reactor
23
22
  job = Reactor::Cm::Job.get(@name)
24
23
  migrate_params!(job)
25
24
  end
26
-
27
25
  end
28
-
29
26
  end
30
-
31
27
  end
@@ -1,10 +1,9 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
2
  module Plans
4
3
  class UpdateObj
5
4
  include Prepared
6
5
 
7
- def initialize(opts={})
6
+ def initialize(opts = {})
8
7
  @key = opts[:obj_id] || opts[:path]
9
8
  @attrs = {}
10
9
  end
@@ -14,14 +13,14 @@ module Reactor
14
13
  end
15
14
 
16
15
  def prepare!
17
- error("object (key=#{@key}) not found") if not Reactor::Cm::Obj.exists?(@key)
18
- #TODO: attribute check
16
+ error("object (key=#{@key}) not found") unless Reactor::Cm::Obj.exists?(@key)
17
+ # TODO: attribute check
19
18
  end
20
19
 
21
20
  def migrate!
22
- obj = Reactor::Cm::Obj.get(@key)
23
- @attrs.each do |key,value|
24
- @obj.set(key,value)
21
+ Reactor::Cm::Obj.get(@key)
22
+ @attrs.each do |key, value|
23
+ @obj.set(key, value)
25
24
  end
26
25
  @obj.save!
27
26
  @obj.release!
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
2
  module Plans
4
3
  class UpdateObjClass < CommonObjClass
@@ -21,7 +20,6 @@ module Reactor
21
20
  migrate_attrs!(@klass)
22
21
  migrate_params!(@klass)
23
22
  end
24
-
25
23
  end
26
24
  end
27
25
  end
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
2
  module RcIndependent
4
3
  module Base
@@ -1,33 +1,32 @@
1
- # -*- encoding : utf-8 -*-
2
- require 'observer'
1
+ require "observer"
3
2
 
4
- require 'reactor/cm/bridge'
5
- require 'reactor/cache/user'
6
- require 'reactor/session/observers'
3
+ require "reactor/cm/bridge"
4
+ require "reactor/cache/user"
5
+ require "reactor/session/observers"
7
6
 
8
7
  class Reactor::Session
9
8
  include Observable
10
9
 
11
10
  class State < Struct.new(:user_name, :session_id)
12
11
  def serialize
13
- [self.user_name, self.session_id]
12
+ [user_name, session_id]
14
13
  end
15
14
 
16
15
  def self.deserialize(array)
17
- self.new(*array)
16
+ new(*array)
18
17
  end
19
18
  end
20
19
 
21
- def initialize(state=State.new)
22
- self.initialize_and_notify(state)
20
+ def initialize(state = State.new)
21
+ initialize_and_notify(state)
23
22
  end
24
23
 
25
24
  def user_name
26
- self.state.user_name
25
+ state.user_name
27
26
  end
28
27
 
29
28
  def session_id
30
- self.state.session_id
29
+ state.session_id
31
30
  end
32
31
 
33
32
  def self.instance
@@ -35,13 +34,11 @@ class Reactor::Session
35
34
  end
36
35
 
37
36
  def self.for(user_name)
38
- self.new(State.new(user_name, nil))
37
+ new(State.new(user_name, nil))
39
38
  end
40
39
 
41
40
  def login(session_id)
42
- if !logged_in?(session_id)
43
- self.user_name = authenticate(session_id)
44
- end
41
+ self.user_name = authenticate(session_id) unless logged_in?(session_id)
45
42
  end
46
43
 
47
44
  def destroy
@@ -49,37 +46,38 @@ class Reactor::Session
49
46
  end
50
47
 
51
48
  def logged_in?(session_id)
52
- self.session_id.present? && self.user? && self.session_id == session_id
49
+ self.session_id.present? && user? && self.session_id == session_id
53
50
  end
54
51
 
55
52
  def user?
56
- self.user_name.present?
53
+ user_name.present?
57
54
  end
58
55
 
59
56
  def user
60
- Reactor::Cache::User.instance.get(self.user_name)
57
+ Reactor::Cache::User.instance.get(user_name)
61
58
  end
62
59
 
63
60
  def user_name=(new_user_name)
64
- self.state.user_name = new_user_name
65
- self.proper_notify_observers(new_user_name, true)
66
- new_user_name
61
+ state.user_name = new_user_name
62
+ proper_notify_observers(new_user_name, true)
67
63
  end
68
64
 
69
65
  def marshal_dump
70
- self.state.serialize
66
+ state.serialize
71
67
  end
72
68
 
73
69
  def marshal_load(array)
74
- self.initialize_and_notify(State.deserialize(array))
70
+ initialize_and_notify(State.deserialize(array))
75
71
  end
76
72
 
77
73
  protected
74
+
78
75
  attr_accessor :state
76
+
79
77
  def initialize_and_notify(state)
80
78
  self.state = state
81
- self.add_observers
82
- self.proper_notify_observers(self.user_name, false)
79
+ add_observers
80
+ proper_notify_observers(user_name, false)
83
81
  end
84
82
 
85
83
  def authenticate(session_id)
@@ -90,18 +88,16 @@ class Reactor::Session
90
88
  def add_observers
91
89
  Observers.constants.each do |possible_observer_name|
92
90
  possible_observer = Observers.const_get(possible_observer_name)
93
- if possible_observer.method_defined?(:update)
94
- self.add_observer(possible_observer.new)
95
- end
91
+ add_observer(possible_observer.new) if possible_observer.method_defined?(:update)
96
92
  end
97
93
  end
98
94
 
99
95
  def proper_notify_observers(*args)
100
- self.changed(true)
101
- self.notify_observers(*args)
96
+ changed(true)
97
+ notify_observers(*args)
102
98
  end
103
99
 
104
100
  def session_id=(new_session_id)
105
- self.state.session_id = new_session_id
101
+ state.session_id = new_session_id
106
102
  end
107
103
  end