@@ -180,10 +180,10 @@ def id=(value)
180180
181181 def changed? ( *args )
182182 if args . count == 0
183- Hyperstack ::Internal ::Store :: State . get_state ( self , "!CHANGED!" )
183+ Hyperstack ::Internal ::State :: Variable . get ( self , "!CHANGED!" )
184184 !changed_attributes . empty?
185185 else
186- Hyperstack ::Internal ::Store :: State . get_state ( self , args [ 0 ] )
186+ Hyperstack ::Internal ::State :: Variable . get ( self , args [ 0 ] )
187187 changed_attributes . include? args [ 0 ]
188188 end
189189 end
@@ -288,7 +288,7 @@ def revert
288288 end
289289
290290 def saving!
291- Hyperstack ::Internal ::Store :: State . set_state ( self , self , :saving ) unless data_loading?
291+ Hyperstack ::Internal ::State :: Variable . set ( self , self , :saving ) unless data_loading?
292292 @saving = true
293293 end
294294
@@ -306,9 +306,9 @@ def saved!(save_only = nil) # sets saving to false AND notifies
306306 notify_waiting_for_save
307307 return self if save_only
308308 if errors . empty?
309- Hyperstack ::Internal ::Store :: State . set_state ( self , self , :saved )
309+ Hyperstack ::Internal ::State :: Variable . set ( self , self , :saved )
310310 elsif !data_loading?
311- Hyperstack ::Internal ::Store :: State . set_state ( self , self , :error )
311+ Hyperstack ::Internal ::State :: Variable . set ( self , self , :error )
312312 end
313313 self
314314 end
@@ -334,7 +334,7 @@ def self.notify_waiting_for_save(model)
334334 end
335335
336336 def saving?
337- Hyperstack ::Internal ::Store :: State . get_state ( self , self )
337+ Hyperstack ::Internal ::State :: Variable . get ( self , self )
338338 @saving
339339 end
340340
0 commit comments