chaltron 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0696a63691d1bbfd419bafbcb7d6fd855883877e
4
- data.tar.gz: f9d1face556bc53d83e95940e1d47d096dfc811d
3
+ metadata.gz: 3fa105a0dcd10139d4875d0c496c2b471d4f2532
4
+ data.tar.gz: 7452408529e3d604b25dbc2d609acccbea8863be
5
5
  SHA512:
6
- metadata.gz: ba7b28a73299bc22002520f091fa20b8a3976842349a33eb81f18e1c31cf96b92fab1f4480f266c0af45ffd0da78853b53c9f9cf49cb5c3377f1a73806803b62
7
- data.tar.gz: 100ad752395e47abdaa43c13506e62d268cb3e5eac5ad16e8be221d2f19214426ed45e81d8019010ac2ea171a87a0ec8cd48838a55df8eb8c3c29adb4bb9dd8c
6
+ metadata.gz: 0a0ff5f79934b9d5da99c691ea1a482ef44d96a163f409558953ab17e5585a2cc98e562da8b4f1acf2e6f026066a1fa40c7ee70e7076a0d2a449984c329eaee5
7
+ data.tar.gz: 3d9939ee336eafbdd2a90bd29455dcbd168725830af0fd743aa4ca4141e8f451dcf0c6c510226d6066b9ae0354ab56718493883a9429b4abc00bfab0509c4573
data/README.md CHANGED
@@ -6,8 +6,8 @@
6
6
  [![security](https://hakiri.io/github/vicvega/chaltron/master.svg)](https://hakiri.io/github/vicvega/chaltron/master)
7
7
 
8
8
  In a fresh new rails application simply add to your `Gemfile`
9
- ```
10
- gem chaltron
9
+ ```ruby
10
+ gem 'chaltron'
11
11
  ```
12
12
  and install
13
13
  ```
@@ -45,10 +45,11 @@ module Chaltron
45
45
  )
46
46
  end
47
47
 
48
+ protected
49
+
48
50
  #
49
51
  # To allow login with username or email
50
52
  #
51
- protected
52
53
  def configure_permitted_parameters
53
54
  devise_parameter_sanitizer.permit(:sign_in) do |user|
54
55
  user.permit(:login, :username, :email, :password, :remember_me)
@@ -1,3 +1,3 @@
1
1
  module Chaltron
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
@@ -11,8 +11,10 @@
11
11
  </tr>
12
12
  </thead>
13
13
  <tbody>
14
- <%%= content_tag_for(:tr, @<%= plural_table_name %>) do |<%= singular_table_name %>| %><% attributes.each do |attribute| %>
15
- <td><%%= link_to <%= singular_table_name %>.<%= attribute.name %>, <%= singular_table_name %> %></td><% end %>
14
+ <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
15
+ <tr><% attributes.each do |attribute| %>
16
+ <td><%%= link_to <%= singular_table_name %>.<%= attribute.name %>, <%= singular_table_name %> %></td><% end %>
17
+ </tr>
16
18
  <%% end -%>
17
19
  </tbody>
18
20
  <%% end %>
@@ -24,5 +26,4 @@
24
26
  <%%= link_to new_<%= singular_table_name %>_path, class: 'btn btn-primary btn-large' do %>
25
27
  <%%= icon('plus') %> New
26
28
  <%% end %>
27
-
28
29
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chaltron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - vicvega
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails