active_admin_simple_life 0.0.3 → 0.0.4

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: a252b16609862d3cd5c7273dc4e0fc1f7bcb235d
4
- data.tar.gz: 7ffd5c633e72d7e56c1500e314345568d57d673a
3
+ metadata.gz: 4e52254ca55eb36f272b62149d6e9d17fc519063
4
+ data.tar.gz: d26d81b3872e8aeee8bc6fd89d4927878bb7df41
5
5
  SHA512:
6
- metadata.gz: fd53081a69abbab520c2f0ef004df24c6e7e8208ea855b97606db2e7f22a8a1294d2553d6d1466ca5096986320f0e3f27a7f5250ab047396576d7b0f1b000881
7
- data.tar.gz: 4f4e923c9f2b29509d20e7cdae768e94bc25390010f35d9eecf27945be190243f4075e16d3199c2c0ee274af037b3120ca5f4c734acd0eb9f1487eb277131688
6
+ metadata.gz: 6b1784629a4441cbffc5639725ec3413ea887a654420380537ab106d43506c1b3a6153c1dad6a2ae68c49724497a8008955befa61367880a220a80e3f328331e
7
+ data.tar.gz: f424149c68e08766a8f4bbc97b781b79d556e4554233f3f1a2d9b73dd38bb5ce097a5db17455a5188e7a62aa6718e3d6cb1478286cbe81924ac9715c3af5f9f9
data/README.md CHANGED
@@ -32,7 +32,7 @@ where you provide columns, which you would like to manage. Example:
32
32
  ```
33
33
  class Foo < ActiveRecord::Base
34
34
  ...
35
- def self.mail_fields
35
+ def self.main_fields
36
36
  [:title, :price, :sale_date]
37
37
  end
38
38
  end
@@ -63,7 +63,7 @@ module ActiveAdminSimpleLife
63
63
 
64
64
  def truncate_field(field, max_length = 50)
65
65
  length = max_length || 50
66
- truncate(field.to_s, length: max_length)
66
+ truncate(field.to_s, length: length)
67
67
  end
68
68
 
69
69
  def fetch_path(field)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveAdminSimpleLife
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_simple_life
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kvokka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-15 00:00:00.000000000 Z
11
+ date: 2016-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails