rails_admin_comments 0.1.0 → 0.1.1

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: b9febe88a376f4232264f3dfd6e79c83817f209f
4
- data.tar.gz: 9b227c1018f97ee6ff00ee2b4e873ecd5aae5c57
3
+ metadata.gz: 92d36ad9f7b2fe74672829bd9e8ece9f6e857886
4
+ data.tar.gz: 1ddf10c71da28a28c6e21b1163a2146b84e6629e
5
5
  SHA512:
6
- metadata.gz: c4ab99cc9ec64650c4f78bfd1b910540c45ee6c41b53f2aa61c9a1f475de0f17ddce4f38ca0c4f314b7b0585f49f4a4d7e639ffe520f1ffed376137b6c6c08e3
7
- data.tar.gz: 429c3ff63b85d5ec570e1e3e836d91b5d03009feaba1f131cca6f3956fca3f8d840bc7b1ad1b4565578fe63975b8323956d3276210afc883c67691f1904cc233
6
+ metadata.gz: 44100a7f7b7aa06c0b66c2842cd8831f36258447576c52136c337bb0f0f2e37555a7c3e4730a30b22f013b4adf5c39cdecc17519cca5f4cbb526a463c86ee83d
7
+ data.tar.gz: cbe891563d599013255d0ef4a77038df53c48af4c38a85171e58887c69ba4de354f3800a2b2fe81863e2dda4e6a950deae5b40acdbf7fde9bff1b32a63b5f863
data/README.md CHANGED
@@ -40,6 +40,17 @@ And add action available for this model_name
40
40
  end
41
41
  ```
42
42
 
43
+ Also you need to add method name_for_rails_admin_comments for user model_name
44
+
45
+ ```ruby
46
+ def name_for_rails_admin_comments
47
+ #some code
48
+ end
49
+ ```
50
+
51
+ It's temporary decision. Will be removed!
52
+
53
+
43
54
  ## Development
44
55
 
45
56
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -13,7 +13,7 @@
13
13
  - creator = c.creator
14
14
  - if creator
15
15
  - model_name = creator.class.to_param.gsub("::", "~").underscore
16
- = link_to creator.name_for_rails_admin, show_path(model_name: model_name, id: creator._id), class: "creator_link"
16
+ = link_to creator.name_for_rails_admin_comments, show_path(model_name: model_name, id: creator._id), class: "creator_link"
17
17
  span.created_at= Russian::strftime c.c_at, "%d.%m.%Y в %H:%M:%S"
18
18
  span.updated_at= " (изм. #{Russian::strftime c.u_at, "%d.%m.%Y в %H:%M:%S"})" if Russian::strftime c.u_at
19
19
  = link_to 'изменить', "##{edit_form_id}", class: 'comment_edit_form_link' if creator == current_user
@@ -1,3 +1,3 @@
1
1
  module RailsAdminComments
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2016-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler