{"id":15432058,"url":"https://github.com/rajputlakhveer/active_admin_access_control","last_synced_at":"2025-10-11T09:32:19.185Z","repository":{"id":221348963,"uuid":"754118961","full_name":"rajputlakhveer/active_admin_access_control","owner":"rajputlakhveer","description":"Through the gem you can create the dynamic role and permissions for different types of users to access active admin panel","archived":false,"fork":false,"pushed_at":"2024-02-07T13:45:30.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T19:40:58.408Z","etag":null,"topics":["access-control","active-admin","activeadmin","cancancan","permssions","rails","roles-permission-management","ruby","ruby-gem","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/active_admin_access_control","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rajputlakhveer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-07T12:45:05.000Z","updated_at":"2024-03-02T17:57:16.000Z","dependencies_parsed_at":"2024-02-07T14:28:58.938Z","dependency_job_id":"953a0b5b-f016-40e7-86bc-752618b9daa2","html_url":"https://github.com/rajputlakhveer/active_admin_access_control","commit_stats":null,"previous_names":["rajputlakhveer/active_admin_access_control"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rajputlakhveer/active_admin_access_control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajputlakhveer%2Factive_admin_access_control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajputlakhveer%2Factive_admin_access_control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajputlakhveer%2Factive_admin_access_control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajputlakhveer%2Factive_admin_access_control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajputlakhveer","download_url":"https://codeload.github.com/rajputlakhveer/active_admin_access_control/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajputlakhveer%2Factive_admin_access_control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003712,"owners_count":26083610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["access-control","active-admin","activeadmin","cancancan","permssions","rails","roles-permission-management","ruby","ruby-gem","ruby-on-rails"],"created_at":"2024-10-01T18:25:00.865Z","updated_at":"2025-10-11T09:32:18.797Z","avatar_url":"https://github.com/rajputlakhveer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActiveAdminAccessControl\n\nactive_admin_access_control is a gem designed to simplify access control management within Active Admin using roles and permissions. It provides an easy way to define roles, assign permissions, and manage user access within the Active Admin panel.\n\n# Features\n- Define roles and permissions for users.\n- Assign roles to users.\n- Manage permissions for each role.\n- Access control directly within the Active Admin panel.\n\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add active_admin_access_control\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install active_admin_access_control\n\n\n## Usage\n\n    $ rails generate active_admin_access_control:install\nThis command will set up the necessary files and configurations for access control.\n\n## Running Migrations\nRun the migrations to set up the necessary database tables:\n\n    $ rails db:migrate\n\n## Seed Data\nIn your seed file (db/seeds.rb), comment out the creation of the default Active Admin admin_user:\n\n\n    # db/seeds.rb\n    # AdminUser.create!(email: 'admin@example.com', password: 'password', password_confirmation: 'password')\n\nThen, run the seed command:\n\n\n    $ rails db:seed\n\n## Update Admin User File\n\nWe need to update admin user files accordingly: \n\n    # app/admin/admin_users.rb\n    ActiveAdmin.register AdminUser do\n      permit_params :email, :password, :password_confirmation, :role_id\n\n      index do\n        selectable_column\n        id_column\n        column :email\n        column :role\n        column :current_sign_in_at\n        column :sign_in_count\n        column :created_at\n        actions\n      end\n\n      filter :email\n      filter :current_sign_in_at\n      filter :sign_in_count\n      filter :created_at\n\n      form do |f|\n        f.inputs do\n          f.input :email\n          f.input :password\n          f.input :password_confirmation\n          f.input :role\n        end\n        f.actions\n      end\n    end\n \n    # app/models/admin_user.rb\n    class AdminUser \u003c ApplicationRecord\n      # Include default devise modules. Others available are:\n      # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable\n      devise :database_authenticatable, \n         :recoverable, :rememberable, :validatable\n  \n      belongs_to :role\n    end\n\n\n\n## Accessing Roles and Permissions\nOnce everything is set up, you can access roles and permissions within the Active Admin panel. Navigate to the appropriate section to manage roles and assign permissions to users.\n\n## Contributing\nBug reports and pull requests are welcome on GitHub at https://github.com/rajputlakhveer/active_admin_access_control.\n\n## License\nThe gem is available as open source under the terms of the MIT License.\n\n## Acknowledgments\nThis gem was inspired by the need for a simple yet powerful access control solution within Active Admin.\n\n## Support\nFor any questions, issues, or feature requests, please open an issue.\n\n## Author\nLakhveer Singh Rajput\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajputlakhveer%2Factive_admin_access_control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajputlakhveer%2Factive_admin_access_control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajputlakhveer%2Factive_admin_access_control/lists"}