effective_resources 0.6.1 → 0.6.2

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: a656240359f56e13c1bfb238df45835f1c52be5f
4
- data.tar.gz: 2bf2cd4ee1efb59ad3645098f42eb37811bd589f
3
+ metadata.gz: 2c6c8584157e7ca3fe3e482ebd436d0906ebf046
4
+ data.tar.gz: 1049673bbd0db8406d63b727ab1ee38872bffa18
5
5
  SHA512:
6
- metadata.gz: b1e02bd43eac4a53a4bb4d5895254ff86a9ce7b211803e70bcf749a4403afaa1f5ef5bcbb3176b3225864a22d16663f314ce6049023396c023c706576baeb959
7
- data.tar.gz: 2cf16278075484bdeeda965a38eb00812552b7973bfe7cfb051f10e15db555f3d989c32dab967ba7bbb2955ae06757568903a4c3dfd2cceac633c3d65e5fb1c6
6
+ metadata.gz: 004e347369d61a273a34b2490f26d1485b4d7e2a86410ae056fcce395e49bd19a69b96f8ec0e9306f0f5b943f2e040ca8fed303e2e670c149d54e9072e6ff747
7
+ data.tar.gz: f7da7f6816f54ea04a3e1881d3d801999b4f27a62bba592a17efdabc0686bfed52b37aa34073a19163d4bd5a0a2efed8612cd1c7adde35190878e5e747b6eaf2
@@ -6,7 +6,9 @@ module Effective
6
6
  class << self
7
7
  def member_actions
8
8
  @_effective_member_actions ||= {
9
- 'Save' => { action: :save, data: { disable_with: 'Saving...' }}
9
+ 'Save' => { action: :save, data: { disable_with: 'Saving...' }},
10
+ 'Save and Continue' => { action: :save, data: { disable_with: 'Saving...' }},
11
+ 'Save and Add New' => { action: :save, data: { disable_with: 'Saving...' }}
10
12
  }
11
13
  end
12
14
  end
@@ -66,9 +66,17 @@ module EffectiveResourcesHelper
66
66
  glyphicon_to('remove', path, {title: 'Remove'}.merge(options))
67
67
  end
68
68
 
69
+ def glyphicon_tag(icon)
70
+ if icon.to_s.start_with?('glyphicon-')
71
+ content_tag(:span, '', class: "glyphicon #{icon}")
72
+ else
73
+ content_tag(:span, '', class: "glyphicon glyphicon-#{icon}")
74
+ end
75
+ end
76
+
69
77
  def glyphicon_to(icon, path, options = {})
70
78
  content_tag(:a, options.merge(href: path)) do
71
- if icon.start_with?('glyphicon-')
79
+ if icon.to_s.start_with?('glyphicon-')
72
80
  content_tag(:span, '', class: "glyphicon #{icon}")
73
81
  else
74
82
  content_tag(:span, '', class: "glyphicon glyphicon-#{icon}")
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.6.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-26 00:00:00.000000000 Z
11
+ date: 2017-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails