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: 0a1d607572cb39a52d99cb28dc075f323aaf4dba
4
- data.tar.gz: ec665109e76ae9fc04c4b5cdf0c655d14895fe42
3
+ metadata.gz: 62816f739c8d81f1d54792c92a8b4b638947806f
4
+ data.tar.gz: e9e40faaba3d4d82a63c36c1b6ca6dabfd54618d
5
5
  SHA512:
6
- metadata.gz: 59e1df27f2cd9a7c37d3a100bb870aed928cd6f842f2c5344bc243098a249967b09d55280bad7291c83eb8ccf636ed57a1406fa00eb3c907a01267796c29911f
7
- data.tar.gz: a5b91f48c6cabd512d441c4891ef9fc6c56848e2f932b388f0922e50644b1a194bd15469db47ebff74bb55175a622aed00b56eb01a46c2484aa8a07bf8d2abd8
6
+ metadata.gz: 4d45656dba50ea6cee6b29456f7fd154975333f4e3f3494896ee499041cd56ca3146d5bc2e0e7689da731c6584298d676190980f09305f86924896070793ed58
7
+ data.tar.gz: 82bf0ebe4ae94f35b9a59bf2957849643449495ba69fc5fed01e3ce015f03e005649ee5894b13c0a7bc247c8d4db23499d1a6e0d844eb26bc31c08d8254cb4c1
@@ -1,3 +1,3 @@
1
1
  module CodelationPages
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.1".freeze
3
3
  end
@@ -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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codelation_pages
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
  - Brian Pattison