railz_lite 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67884b77d71307c891be0cc4402f6c6fb0adf04498956df13ea66bdb2bc36bba
|
4
|
+
data.tar.gz: 9ca0c311a2424173ef01cadac5a762ac8ecb59bde762057faa153c64ba2d6560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08dcd22b2260b9ef62ae1927bd37d5ad0bfa53dfe504199712c587dcd75a550c493067fcb4b0675841a01877ebcc01e5d885858c509608e058d52b49fbbff0ba'
|
7
|
+
data.tar.gz: 7cfdc71ef797a18e6b34b3fd13e2d08c1be630845b54f1f0e2c7aed20e928239f7b5b0d901a7b6d6e198fba3cb9dd0320fbc22d57dbf866bb80f3ba4794afb0b
|
@@ -45,8 +45,8 @@ module RailzLite
|
|
45
45
|
# use ERB and binding to evaluate templates
|
46
46
|
# pass the rendered html to render_content
|
47
47
|
def render(template_name)
|
48
|
-
dir_path =
|
49
|
-
file_path = File.join(dir_path, '
|
48
|
+
dir_path = Dir.pwd
|
49
|
+
file_path = File.join(dir_path, 'views', "#{self.class.name.underscore}", "#{template_name.to_s}.html.erb")
|
50
50
|
file = File.read(file_path)
|
51
51
|
template = ERB.new(file).result(binding)
|
52
52
|
render_content(template, 'text/html')
|
@@ -1,8 +1,7 @@
|
|
1
1
|
require 'sqlite3'
|
2
2
|
|
3
3
|
PRINT_QUERIES = ENV['PRINT_QUERIES'] == 'true'
|
4
|
-
|
5
|
-
ROOT_FOLDER = File.join(File.dirname(__FILE__), '..')
|
4
|
+
ROOT_FOLDER = Dir.pwd
|
6
5
|
SQL_FILE = File.join(ROOT_FOLDER, 'app.sql')
|
7
6
|
DB_FILE = File.join(ROOT_FOLDER, 'app.db')
|
8
7
|
|
data/lib/railz_lite/version.rb
CHANGED