bootswatch_rails 3.2.0.6 → 3.2.0.7
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: 50512531e441f2bb338d5d2088dd9f21dd3d8d8a
|
4
|
+
data.tar.gz: 83845e120bdaef0e6f1f22cb2282eb2b1f1a4185
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd25e163470352337e43f9e006c50c0a479be6423342f05afeb91aac03e0fea40fe68c60211cca8a6bcb3854c0a7e08f72f458484b0bd4eb0cbaf6818d2e81b9
|
7
|
+
data.tar.gz: 4a4f95fdc21edf2b15fff0b59c5e86180eaed063c74de584c5e9335b9086f4964a18916b54980e04779f149b4b047cf02c19f3b9e3bf3a434d99df2e989f48d9
|
@@ -18,9 +18,17 @@ module BootswatchRails
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def add_to_view
|
21
|
+
file = "app/views/#{table_name}/index.html.erb"
|
22
|
+
columns.each do |column|
|
23
|
+
gsub_file file, /(#{name}\.#{column})/, "raw(\\1)"
|
24
|
+
end
|
25
|
+
file = "app/views/#{table_name}/show.html.erb"
|
26
|
+
columns.each do |column|
|
27
|
+
gsub_file file, /(@#{name}\.#{column})/, "raw(\\1)"
|
28
|
+
end
|
21
29
|
file = "app/views/#{table_name}/_form.html.erb"
|
22
30
|
columns.each do |column|
|
23
|
-
gsub_file file, /(
|
31
|
+
gsub_file file, /(:#{column}) /, "\\1, input_html: { class: 'cleditor' } "
|
24
32
|
end
|
25
33
|
end
|
26
34
|
end
|