adminable 0.0.2 → 0.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed7d5e6b53555c9173e58a2428193fc82e2169d2
|
4
|
+
data.tar.gz: 1526f33a3846f594823bed6daa75122ad21cb4be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9341f2b025e57567837f4681270f62dc6a5bd45b58cd6f21f8ea652d8a1a823cca842e51747efa9cbfcb932f1e0d98ef1e857f388118e107d4db9dd0d45e04e
|
7
|
+
data.tar.gz: fc5d3ccd581223b2827ce54759b9079e4cbc88b80330fd00de115c19d8ce2b7416d1a820a5480c0fb16b518110109564305942550249f63b14e943b075e6829b
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
- if value
|
2
|
+
= strip_tags(value).truncate(30).squish
|
data/config/routes.rb
CHANGED
@@ -20,5 +20,13 @@ module Adminable
|
|
20
20
|
Dir[Rails.root.join('app/controllers/adminable/**/*_controller.rb')]
|
21
21
|
.reject { |f| f['app/controllers/adminable/application_controller.rb'] }
|
22
22
|
end
|
23
|
+
|
24
|
+
def self.redirect_root_path
|
25
|
+
if resources.any?
|
26
|
+
resources.first.name
|
27
|
+
else
|
28
|
+
Rails.application.routes.url_helpers.root_path
|
29
|
+
end
|
30
|
+
end
|
23
31
|
end
|
24
32
|
end
|
data/lib/adminable/version.rb
CHANGED