Coder Social home page Coder Social logo

Comments (5)

11factory avatar 11factory commented on August 11, 2024

Thks for your job,

can you do a pull request please ?

2012/7/3 James McKinney <
[email protected]

See my gist: https://gist.github.com/3040303

It enforces cancan on menus, action items, default_actions in index
tables, and when using AA's auto_link.


Reply to this email directly or view it on GitHub:
#3

from activeadmin-cancan.

jpmckinney avatar jpmckinney commented on August 11, 2024

There are some issues expressed in the comments to that gist about the initializer raising exceptions on the legacy Dashboard and on Comments controllers, so a few tweaks need to be made.

Also, I'm not sure how you'd like to split up the gist into different files, and since the gist is longer than your entire gem, I figure you can do some copy-paste to add this useful functionality.

I'm quite happy using my initializer and skipping activeadmin-cancan altogether.

from activeadmin-cancan.

marcusg avatar marcusg commented on August 11, 2024

hey, the gist is working well. are there any plans to integrate it inside your gem?

from activeadmin-cancan.

jpmckinney avatar jpmckinney commented on August 11, 2024

No plans currently.

from activeadmin-cancan.

marcusg avatar marcusg commented on August 11, 2024

it looks like there is no need for this gem anymore. with activeadmin 0.6.0 you can define cacan as an authorization-adapter http://activeadmin.info/docs/13-authorization-adapter.html#setting_up_your_own_authorizationadapter

from activeadmin-cancan.

Related Issues (9)

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.