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 +4 -4
- data/README.md +11 -0
- data/app/views/rails_admin/main/comments.html.slim +1 -1
- data/lib/rails_admin_comments/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92d36ad9f7b2fe74672829bd9e8ece9f6e857886
|
4
|
+
data.tar.gz: 1ddf10c71da28a28c6e21b1163a2146b84e6629e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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.
|
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-
|
11
|
+
date: 2016-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|