app/cms/scrivito/user.rb in scrivito_sdk-1.11.0 vs app/cms/scrivito/user.rb in scrivito_sdk-1.12.0.rc1

- old
+ new

@@ -129,17 +129,23 @@ unless user.is_a?(User) || user.nil? raise ScrivitoError.new("Expected an instance of #{self} or nil, but got #{user.inspect}") end end - attr_reader :id, :explicit_rules, :description_proc, :suggest_users_proc, :restriction_set + attr_reader :id + attr_reader :description_proc + attr_reader :explicit_rules + attr_reader :restriction_set + attr_reader :suggest_users_proc + attr_reader :ui_locale def initialize(options) @id = options[:id] - @explicit_rules = options[:explicit_rules] @description_proc = options[:description_proc] - @suggest_users_proc = options[:suggest_users_proc] + @explicit_rules = options[:explicit_rules] @restriction_set = options[:restriction_set] + @suggest_users_proc = options[:suggest_users_proc] + @ui_locale = options[:ui_locale] @explicit_rules.each { |rule| assert_valid_verb(rule.second) } @explicit_rules_set = Set.new(@explicit_rules.map { |rule| rule.take(3) }) end