rails_layout 0.5.10 → 0.5.11

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: 47a7bc50c441a4d8e23a26cdf67692269e6fe8d6
4
- data.tar.gz: 2a9e510a5fe0cbca6ad4584cf066cf5dd275cea3
3
+ metadata.gz: af9cd246834d468c0a859cd5e114de5344fee621
4
+ data.tar.gz: 0bec88f7a7b34e51f6525d0b56e70537b08728ae
5
5
  SHA512:
6
- metadata.gz: dfb8a26d8bfd5fd4cb3f45fe67e4fb038e1aaa0ed932183809fe476902a35a1c6be32335a3a4801f88bf4af416258aeb8a668d02d36aae90f8647379e61c15a8
7
- data.tar.gz: c6413632fd4a0bdb2f4264ec2917cba7ced6fa1d43b04b84c616e17f5f5eddbc7e74e8cbde0e8d4f898526f343f371ed2e2ae25dc04c44d8bc73a95235c5f524
6
+ metadata.gz: cb6f756471d63e476ff756ad6a3d30dac557b0182aa86458452ec3c653d187d42ea82bf8c01be45b0b94cd2b3b34820785977945a415a5f552b2b8b5e933f127
7
+ data.tar.gz: 8d81553af2ca50058c5b3936f4be66ab50af7631310917f012b1cc607ba7d3bc249181ddea484d0714b49ede8328206cd89a926efdada2287d7d551de952b13c
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 0.5.11 January 5, 2014
4
+
5
+ * fix Devise navigation links (when there is no 'has_role?' for authorization)
6
+
3
7
  h3. 0.5.10 January 1, 2014
4
8
 
5
9
  * add Devise navigation links for Haml or Slim (contributed by Brad Carson)
@@ -36,13 +36,11 @@ LINKS
36
36
  LINKS
37
37
  end
38
38
  end
39
- # ADMIN LINK
39
+ # USERS LINK
40
40
  if Dir.glob("app/views/users/index.html.{#{ext},erb}").any?
41
41
  append_file 'app/views/layouts/_navigation_links.html.erb' do <<-LINKS
42
42
  <% if user_signed_in? %>
43
- <% if current_user.has_role? :admin %>
44
- <li><%= link_to 'Admin', users_path %></li>
45
- <% end %>
43
+ <li><%= link_to 'Users', users_path %></li>
46
44
  <% end %>
47
45
  LINKS
48
46
  end
@@ -1,3 +1,3 @@
1
1
  module RailsLayout
2
- VERSION = "0.5.10"
2
+ VERSION = "0.5.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-01 00:00:00.000000000 Z
11
+ date: 2014-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler