lib/scrivito/workspace_data.rb in scrivito_sdk-1.9.1 vs lib/scrivito/workspace_data.rb in scrivito_sdk-1.10.0.rc1
- old
+ new
@@ -1,12 +1,8 @@
module Scrivito
class WorkspaceData
- class << self
- private
-
- def data_attr_reader(attr_name)
- define_method(attr_name) { @data[attr_name.to_s] }
- end
+ private_class_method def self.data_attr_reader(attr_name)
+ define_method(attr_name) { @data[attr_name.to_s] }
end
data_attr_reader :id
data_attr_reader :title
data_attr_reader :memberships