para-acl 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e79003cbfdcee59d89501089fad44dc766d19d5
4
- data.tar.gz: e3d39c181bc7114438b499d75b5b68ff6e180792
3
+ metadata.gz: 72514f7573fc42b2d0ae72ba9930010a2c1b9311
4
+ data.tar.gz: 4802f29313ece1e7934536d66e534a6d6e7e3411
5
5
  SHA512:
6
- metadata.gz: b93ee612f9899c486063fe5ac6fd0d82362f94583a05435c852895f723b7436d58a0ecbdf7f31058d07da2644ab904fa0368afec50703f8c6d21430bdb1a146b
7
- data.tar.gz: 5b659dd03b5d984bda7de4fcf687aa6a7ed7b82befa57b131064a105fd102667ee3d679c8b2e8d2cb63363fb9df514c7e1775e3d53548f507de468b241c3a674
6
+ metadata.gz: a272b3a5fc8e4e94dcd96c41cd73b07a1dbacdadb4a2ae284be439c500454029d3d15770b2d5f567430464c4e688ef58c16f65394f34658dbdedcf3171f533aa
7
+ data.tar.gz: 22685408720f69c7fab1ee1969b5fe888badcfdc5186f9e161a8f622b0cb8e32afd21057667d2e64ddb21e656c23cc00360785b3f5b3a3c6debc2ac65e6bedac
@@ -1,4 +1,4 @@
1
- = para_form_for(resource, url: @component.relation_path(:role, id: resource.id)) do |form|
1
+ = para_form_for(resource, url: @component.relation_path((resource.new_record? ? :roles : :role), id: resource.id)) do |form|
2
2
  = form.tabs do |tabs|
3
3
  = tabs.tab :role do
4
4
  = form.input :name
@@ -10,10 +10,10 @@ module Para
10
10
 
11
11
  def add_role_mixin_to_admin
12
12
  admin_user_class_file_path = File.join(
13
- 'app', 'models', "#{ admin_user_class_name.underscore }.rb"
13
+ 'app', 'models', "#{ Para.config.acl.admin_user_class.underscore }.rb"
14
14
  )
15
15
 
16
- inject_into_file admin_user_class_file_path, after: "< ActiveRecord::Base" do
16
+ inject_into_file admin_user_class_file_path, after: /< (ActiveRecord::Base|ApplicationRecord)/ do
17
17
  "\n has_admin_role"
18
18
  end
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Para
2
2
  module Acl
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: para-acl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentin Ballestrino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-27 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: para