codelation_pages 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62816f739c8d81f1d54792c92a8b4b638947806f
|
4
|
+
data.tar.gz: e9e40faaba3d4d82a63c36c1b6ca6dabfd54618d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d45656dba50ea6cee6b29456f7fd154975333f4e3f3494896ee499041cd56ca3146d5bc2e0e7689da731c6584298d676190980f09305f86924896070793ed58
|
7
|
+
data.tar.gz: 82bf0ebe4ae94f35b9a59bf2957849643449495ba69fc5fed01e3ce015f03e005649ee5894b13c0a7bc247c8d4db23499d1a6e0d844eb26bc31c08d8254cb4c1
|
@@ -33,6 +33,7 @@ module ActionDispatch
|
|
33
33
|
# @param directory_name [String]
|
34
34
|
def custom_controller_exists(directory_name)
|
35
35
|
return true if File.exist?(Rails.root.join("app", "controllers", "pages", "#{directory_name}_controller.rb"))
|
36
|
+
Object.const_defined?("Pages::#{directory_name.camelize}Controller")
|
36
37
|
end
|
37
38
|
|
38
39
|
# Draws the routes for static pages within sub folders.
|