GithubHelp home page GithubHelp logo

appfolio / ae_declarative_authorization Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 5.0 747 KB

An authorization Rails plugin using a declarative DSL for specifying authorization rules in one place

License: MIT License

Ruby 100.00%

ae_declarative_authorization's People

Contributors

aepstein avatar annaswims avatar appfolio-sourcegraph-commit-signer[bot] avatar bboe avatar bterkuile avatar dvicory avatar dyck avatar gordonbisnor avatar jhawthorn avatar jimherz avatar jjb avatar ledermann avatar maimer avatar markmansour avatar pauldanielm avatar sarahsehr avatar spjsschl avatar stffn avatar sunkencity avatar tanelj avatar timcharper avatar tlconnor avatar tovodeverett avatar tpickett66 avatar urkle avatar wilsonyqm avatar wpliao1989 avatar zeiv avatar ztmeyer avatar zwalker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ae_declarative_authorization's Issues

undefined method `using_access_control'

I want to upgrade an existing application using xymist/declarative_authorization, which is a fork of stffn/declarative_authorization but allows using rails 5. I'm currently on RoR 5.2.8.1 and want to upgrade to RoR 6.0, 6.1 and 7.0 step by step.
As a first step I simple changed the gem xymist/declarative_authorization to ae_declarative_authorization (1.0.0) on RoR 5.2.8.1 (ruby 2.7.7). As I start my application I get the following error:

undefined method `using_access_control' for #<Class:0x00007fe9b8e69bb0>

See details in the screenshot below. The affected class is class Note < ApplicationRecord. and ApplicationRecord is simple that:

class ApplicationRecord < ActiveRecord::Base
  self.abstract_class = true
end

It seems, that somehow the gem is not initialized.

Screenshot_20230124_172144

Is this fork dead?

Is this fork of declarative_authorization dead? Is any other one for rails 6 and 7?

`using_access_control` causes hangs on Rails 5.0

Firstly, thanks for creating this gem, it's helping us out.

We our upgrading an old application to Rails 5.0 (5.0.7.2), and have switched to your gem (1.0.0) for this.

Including this DSL entry in a model using_access_control causes our tests to hang when these models are created (via FactoryBot).

I wonder if you could suggest some code that we can start digging into debugging purposes?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.