appfolio / ae_declarative_authorization Goto Github PK
View Code? Open in Web Editor NEWAn authorization Rails plugin using a declarative DSL for specifying authorization rules in one place
License: MIT License
An authorization Rails plugin using a declarative DSL for specifying authorization rules in one place
License: MIT License
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.
Is this fork of declarative_authorization dead? Is any other one for rails 6 and 7?
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?
The method under test always defaults to :get
no matter what the action name is. As we know in rails, certain actions typically correspond to :post
methods such actions create
and update
. ae_declarative_authorization should default to using :post
for said methods.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.