cms-fortress 1.1.5 → 1.1.6

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: 23d3523efa51201588fedd394a1909352466a71f
4
- data.tar.gz: 2b586ee061ddad839ca8dfe28829980e6f961490
3
+ metadata.gz: b7080dd41dcb7e275d0ae66539422722714f4a72
4
+ data.tar.gz: f4dbcb4e8240a697876f1b2f59e01c3a5a7fc6a4
5
5
  SHA512:
6
- metadata.gz: 349ea67b8f8587de0efdd556b20e85337e7dae7304f1183c9e3cba8bcee5d70e1eaa33b9aaa944ce9d45b1b8916a85c56f6383b9fdf4748ceef728636287a8f5
7
- data.tar.gz: 95a0ed41d08bd4711510fb98c291bdc94afe5832afd61841c135c960fb285f0771e36b4a9d5402d2d0a436030f580e423b3178c815f0bfbe81383eef62462c0a
6
+ metadata.gz: 84f90cb48f2db5ee86ce0200678a9202757d635ad5bcb0f8aa7aa33c173cb01de2a56f582d66be49decc0c5b61293ced53da2a8d5791d8c007de2cb6c373345e
7
+ data.tar.gz: 670d4001339024a47397c80ee96dc50bf4d0d59ccf77eb73c5efc135942a58c212529789874e8ecfd45a956a830eece9b7fc4d863ae50beba8e8bc73856c15b9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.5
1
+ 1.1.6
@@ -3,6 +3,11 @@ module Cms
3
3
 
4
4
  module ApplicationHelper
5
5
 
6
+ def role_display(command)
7
+ res = command.split(".")
8
+ raw "#{content_tag(:strong, res.first.titleize) } / #{ res[1..-1].map {|r| r.titleize}.join(" - ") }"
9
+ end
10
+
6
11
  def theme_name
7
12
  Cms::Fortress.configuration.theme.to_s
8
13
  end
@@ -16,7 +16,7 @@
16
16
  %th Manage
17
17
  = f.fields_for :role_details do |role|
18
18
  %tr
19
- %td= role.object.name
19
+ %td= role_display(role.object.command)
20
20
  %td= role.check_box :can_view
21
21
  %td= role.check_box :can_create
22
22
 
data/cms-fortress.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "cms-fortress"
8
- s.version = "1.1.5"
8
+ s.version = "1.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Melvin Sembrano"]
@@ -1,4 +1,3 @@
1
-
2
1
  module Cms
3
2
  module Fortress
4
3
  module ApplicationControllerMethods
@@ -29,7 +28,8 @@ module Cms
29
28
  end
30
29
 
31
30
  def ability_class
32
- if defined?(Ability) #File.exist?(File.join(Rails.root, "app", "models", "ability.rb"))
31
+
32
+ if defined?(Ability)
33
33
  Ability
34
34
  else
35
35
  CmsAbility
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cms-fortress
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Melvin Sembrano