assigns_has_many_through_relations 0.0.3 → 0.0.4

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: 62803ed3c056be8574084f7043063f5dfa9557c4
4
- data.tar.gz: 2d7da24a2a4e2e3d1bb3a8f058dd19bfc96de3e2
3
+ metadata.gz: 89db94823dc04c43f68998926980f0215e6166f7
4
+ data.tar.gz: ef2a6418618bc38814a69bb874183a6538e7e78d
5
5
  SHA512:
6
- metadata.gz: 2d453632ce9858893e3c1cc5af2555130aaca43b76bc3e4b425d01eef573c5201daca1f416879b68a2046aa7ecfa391e39cd2cdef6d3f70334514a1e36396a99
7
- data.tar.gz: ed6e4d88463447ee8390ce6c7bf2d60ed38ac58d0e6ebb282ab495008792ce1e78290a39edbba74e0bbcccc8eff499c25880d89bc1ea44ad6e8884776f4dea75
6
+ metadata.gz: 0370289bde4e0ae46a5ffb7fdefb0e474758cb7d65052d101b99a664a6d6b9724dcdb342615c999ddddbae6cf840da12ca2d56038d2957fd35de8c2c7c1a3a8e
7
+ data.tar.gz: a5c3eae708b3061a736a71d2a7cde790c9016832d54700a385c73159ae3e9013610ca334441fb20d649e137f0fe25048b215ecfffaacaffcf6ab962616a2afdf
data/README.md CHANGED
@@ -77,13 +77,13 @@ Finally, render the management UI partial in a view template in `app/views/locat
77
77
 
78
78
  You'll have to provide the user with a link to `locations_users_path`. And that's it. Now you'll be able to assign and unassign `User`s to `Location`s.
79
79
 
80
- You can configure the engine to run a controller authorization method as you would a controller macro e.g like [Cancan's](https://github.com/CanCanCommunity/cancancan/wiki/Authorizing-Controller-Actions) `load_and_authorize_resource`:
80
+ You can configure the engine to run a controller authorization method as you would a controller macro e.g like [Cancan's](https://github.com/CanCanCommunity/cancancan/wiki/Authorizing-Controller-Actions) `authorize_resource`:
81
81
 
82
82
  ```ruby
83
83
  # config/initializers/assigns_has_many_through_relations.rb
84
84
 
85
85
  AHMTR.configure do
86
- auth_filter :load_and_authorize_resource
86
+ auth_filter :authorize_resource
87
87
  end
88
88
  ```
89
89
 
@@ -19,7 +19,7 @@
19
19
  </div>
20
20
 
21
21
  <div id="role-nav-panel" class="panel-body">
22
- <%= render 'shared/quick_list_filter', target: '#roles-nav' %>
22
+ <%= render '/quick_list_filter', target: '#roles-nav' %>
23
23
 
24
24
  <ul id="roles-nav" class="nav nav-stacked fix-height">
25
25
  <li role="presentation" class="active">
@@ -53,7 +53,7 @@
53
53
  </div>
54
54
 
55
55
  <div class="panel-body">
56
- <%= render 'shared/quick_list_filter', target: '#selected-right-side' %>
56
+ <%= render '/quick_list_filter', target: '#selected-right-side' %>
57
57
 
58
58
  <ul id="selected-right-side" class="list-unstyled fix-height">
59
59
  <% @selected_right_side_models.each do |model| %>
@@ -86,7 +86,7 @@
86
86
  </div>
87
87
 
88
88
  <div class="panel-body">
89
- <%= render 'shared/quick_list_filter', target: '#available-right-side' %>
89
+ <%= render '/quick_list_filter', target: '#available-right-side' %>
90
90
 
91
91
  <ul id="available-right-side" class="list-unstyled fix-height">
92
92
  <% @available_right_side_models.each do |model| %>
@@ -0,0 +1,8 @@
1
+ <div class="form-group quick-filter-form">
2
+ <div class="input-group">
3
+ <%= text_field_tag 'q', nil, class: 'form-control input-sm quick-filter', placeholder: 'Filter', autocomplete: 'off', data: { target: target }, id: nil %>
4
+ <div class="input-group-addon input-sm">
5
+ <span class="glyphicon glyphicon-search"></span>
6
+ </div>
7
+ </div>
8
+ </div>
@@ -1,3 +1,3 @@
1
1
  module AssignsHasManyThroughRelations
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assigns_has_many_through_relations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Salazar
@@ -70,6 +70,7 @@ files:
70
70
  - app/assets/stylesheets/assigns_has_many_through_relations/application.css.scss
71
71
  - app/views/.DS_Store
72
72
  - app/views/_assigns_has_many_through_relations.html.erb
73
+ - app/views/_quick_list_filter.html.erb
73
74
  - assigns_has_many_through_relations.gemspec
74
75
  - lib/assigns_has_many_through_relations.rb
75
76
  - lib/assigns_has_many_through_relations/configuration.rb