crud_responder 0.2.5 → 0.2.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: bc4c6a90000c908653f2a0a63e6fd05111888fa8
4
- data.tar.gz: c99c02ff88014b717adb59c24623907150f1badb
3
+ metadata.gz: f03f86ecfa0f4780b38e8b5359df48d958015346
4
+ data.tar.gz: 58ff64d312c19cc00b1367eb59afaf4e110e601d
5
5
  SHA512:
6
- metadata.gz: 1f98a0eb1aa646f2951e211d664a5cc1afc7d83672919ed882ca5000832850025ecf9cd5623e746c6c6b619f40cba702bf0112cf5404bd7ba9d153ef6d155b4c
7
- data.tar.gz: 338a0c8c5126ecfd2a6d57378949b075480b65ac79ffeedb6c217c99c35a4659bce08b983522d2722b55b119690150c9326a5bcc817e16865d27fc9885e9d153
6
+ metadata.gz: 53aa1a797d679fa3f9a1796ed6ee3bb681bf88fcbc80e59ef6e0f7eb13503ce82c9145c0d9f2e1664af32337f077566b06fbe54ef148b643ea4b1db1dda887a9
7
+ data.tar.gz: a09b0c75931263b586d8d0f7a92301effa1089a2a155e88429975383003911b2c3cc1bb3752fb34d6726695df1d58ae6a41461b7fd45b7ada641ba1565e33723
@@ -24,4 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "rspec", "~> 3"
25
25
  spec.add_dependency "railties", ">= 4", "< 5.1"
26
26
  spec.add_dependency "actionpack", ">= 4", "< 5.1"
27
+ spec.add_dependency "activesupport", ">= 4", "< 5.1"
27
28
  end
@@ -1,3 +1,3 @@
1
1
  module CrudResponder
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
@@ -93,7 +93,7 @@ module CrudResponder
93
93
  end
94
94
 
95
95
  def resource_name_by_object(object)
96
- object.class.to_s
96
+ object.try(:model_name).try(:human) || object.class.name
97
97
  end
98
98
 
99
99
  def flash_success(msg)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crud_responder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Antonyan
@@ -92,6 +92,26 @@ dependencies:
92
92
  - - "<"
93
93
  - !ruby/object:Gem::Version
94
94
  version: '5.1'
95
+ - !ruby/object:Gem::Dependency
96
+ name: activesupport
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '4'
102
+ - - "<"
103
+ - !ruby/object:Gem::Version
104
+ version: '5.1'
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '4'
112
+ - - "<"
113
+ - !ruby/object:Gem::Version
114
+ version: '5.1'
95
115
  description: Don't repeat object.save, object.update, object.destroy and flash[:alert],
96
116
  flash[:notice] in every controller. Use action's name to decide what to do
97
117
  email: