i18n_rails_helpers 2.0.0.beta2 → 2.0.0

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: c334d28a5a3db630249a7874ae40411ef413f696
4
- data.tar.gz: 98d927d8b91dc25fa1a32f71a91db27278b8310e
3
+ metadata.gz: 0e394b4e86a0b7729fa667282e6df6b921ad7faf
4
+ data.tar.gz: 8ed25b324b7639ab6e634e9ce8a3173897f1763c
5
5
  SHA512:
6
- metadata.gz: c83e0b04ed011ad15fd32bd2fa46e990d8ad8d574651fbb8a2766c94e09de6b27e7561face6d104a91d3108cc6dd4c0c455e41c733b314540fe813fcd05fe694
7
- data.tar.gz: 49eeb16a8dae3e56258db94bb7dc5be812d34f27cba96b0b162b3d22354df9baa2869189047ba7ba817f11bfe6ad040d190db1a4a9191b3291d3fa9bc8207358
6
+ metadata.gz: 8750b8420c7d0b91cd41773e6101c36da2340c5f6bfc732e47c71d3bf19ba49c7587c73985e1e4b5aa7ef71903d02e7eeb5e82165fd96119d58d1e92d60a3992
7
+ data.tar.gz: cb640403467b9d2881d796a7c22d6aae1e83952b13feb55ec6221d99b990e7a544bec0194bdf613893e7dba3dcf711ee01eed34a1f2122b437609541d6e936f2
@@ -8,7 +8,7 @@ module ContextualLinkHelpers
8
8
  "eye-open"
9
9
  when 'edit'
10
10
  "edit"
11
- when 'delete'
11
+ when 'delete', 'destroy'
12
12
  "trash"
13
13
  when "index", "list"
14
14
  "list-alt"
@@ -1,24 +1,5 @@
1
1
  module ListLinkHelpers
2
- def action_to_icon(action)
3
- case action.to_s
4
- when 'new'
5
- "plus"
6
- when 'show'
7
- "eye-open"
8
- when 'edit'
9
- "edit"
10
- when 'delete'
11
- "trash"
12
- when "index", "list"
13
- "list-alt"
14
- when "update"
15
- "refresh"
16
- when "copy"
17
- "repeat"
18
- else
19
- action
20
- end
21
- end
2
+ include ContextualLinkHelpers
22
3
 
23
4
  # List link helpers
24
5
  def list_link_to(action, url, options = {})
@@ -1,3 +1,3 @@
1
1
  module I18nRailsHelpers
2
- VERSION = "2.0.0.beta2"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_rails_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Huerlimann (CyT)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -122,9 +122,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - ">"
125
+ - - ">="
126
126
  - !ruby/object:Gem::Version
127
- version: 1.3.1
127
+ version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
130
  rubygems_version: 2.4.5