canvas-lms/gems/adheres_to_policy
Cody Cutrer 62fb86ea50 raise bundler minimum requirement
because of nokogiri, we rely on multi-platform gem caching, which
only works right in bundler 2.2

Change-Id: Id207278946e849abec3418807c71e4650506a0cf
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/259142
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-02-19 22:49:02 +00:00
..
lib add granular permissions for course files 2021-01-27 17:02:38 +00:00
spec add # frozen_string_literal: true for embedded gems 2020-10-28 22:08:40 +00:00
.rspec raise bundler minimum requirement 2021-02-19 22:49:02 +00:00
Gemfile bump simplecov, fixes SD-2056 2017-04-04 18:06:25 +00:00
README.md da licença part 53 2017-05-01 21:06:11 +00:00
Rakefile convert adheres to policy plugin into proper gem 2014-01-31 17:22:45 +00:00
adheres_to_policy.gemspec raise bundler minimum requirement 2021-02-19 22:49:02 +00:00
test.sh simplify gem test harnesses 2016-01-19 17:52:58 +00:00

README.md

AdheresToPolicy

This allows us to do something like:

class Account < ActiveRecord::Base set_policy do given { |u| self.user == u } can :read and can :write end end

u = User.first a = Account.first a.check_policy(u)

License

Copyright (C) 2014 - present Instructure, Inc.

This file is part of Canvas.

Canvas is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.

Canvas is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.