mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-30 08:54:31 +08:00
Add dependency to Canaid, the permission helper library
This commit is contained in:
parent
fe128dc53b
commit
ccef5571f1
3 changed files with 17 additions and 0 deletions
3
Gemfile
3
Gemfile
|
@ -86,6 +86,9 @@ gem 'devise_security_extension',
|
|||
git: 'https://github.com/phatworx/devise_security_extension.git',
|
||||
ref: 'b2ee978'
|
||||
|
||||
# Permission helper Gem
|
||||
gem 'canaid', git: 'https://github.com/biosistemika/canaid', branch: 'master'
|
||||
|
||||
group :development, :test do
|
||||
gem 'listen', '~> 3.0'
|
||||
gem 'byebug'
|
||||
|
|
10
Gemfile.lock
10
Gemfile.lock
|
@ -1,3 +1,12 @@
|
|||
GIT
|
||||
remote: https://github.com/biosistemika/canaid
|
||||
revision: a3dd029bf993767a1e11e2e3f71aea2e6d427476
|
||||
branch: master
|
||||
specs:
|
||||
canaid (0.0.1)
|
||||
devise (>= 3.4.1)
|
||||
rails (>= 4)
|
||||
|
||||
GIT
|
||||
remote: https://github.com/biosistemika/jquery-scrollto-rails
|
||||
revision: d1d40d5334e0bccfc64208ba81b9a7792f6cb591
|
||||
|
@ -515,6 +524,7 @@ DEPENDENCIES
|
|||
bootstrap_form
|
||||
bullet
|
||||
byebug
|
||||
canaid!
|
||||
capybara
|
||||
capybara-email
|
||||
commit_param_routing
|
||||
|
|
4
config/initializers/canaid.rb
Normal file
4
config/initializers/canaid.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
Canaid.configure do |config|
|
||||
config.permissions_paths << 'app/permissions/**/*.rb'
|
||||
config.permissions_paths << 'addons/**/app/permissions/**/*.rb'
|
||||
end
|
Loading…
Add table
Reference in a new issue