lib/monarchy/acts_as_member.rb in monarchy-2.5.0 vs lib/monarchy/acts_as_member.rb in monarchy-2.6.0

- old
+ new

@@ -50,11 +50,9 @@ belongs_to :user, class_name: "::#{Monarchy.user_class}" belongs_to :hierarchy, class_name: "::#{Monarchy.hierarchy_class}" end - private - def with_ancestors_access(resource) unscoped.where(hierarchy: resource.hierarchy.self_and_ancestors) .joins(:roles).where(monarchy_roles: { inherited: true }) end