lib/recurso/config.rb in recurso-0.5.3 vs lib/recurso/config.rb in recurso-0.6.1

- old
+ new

@@ -10,11 +10,12 @@ :actions_for_default, :levels, :default_level, :identity_foreign_key, :permission_class_name, - :default_permission_class_name + :default_permission_class_name, + :global_relations def initialize @levels_for_action = { view: [:admin, :editor, :viewer], modify: [:admin, :editor], @@ -32,9 +33,11 @@ @default_level = :member @identity_foreign_key = DEFAULT_IDENTITY_FOREIGN_KEY @permission_class_name = DEFAULT_PERMISSION_CLASS_NAME + + @global_relations = [] end def model_specific(value, model) if value.respond_to?(:call) value.call(model)