lib/vedeu/runtime/bootstrap.rb in vedeu-0.6.25 vs lib/vedeu/runtime/bootstrap.rb in vedeu-0.6.26
- old
+ new
@@ -63,16 +63,16 @@
end
# @return [void]
def client_application!
[
- 'app/views/templates/**/*',
- 'app/views/interfaces/**/*',
- 'app/controllers/**/*',
- 'app/helpers/**/*',
- 'app/views/**/*',
- 'app/models/keymaps/**/*',
+ 'app/views/templates/**/*'.freeze,
+ 'app/views/interfaces/**/*'.freeze,
+ 'app/controllers/**/*'.freeze,
+ 'app/helpers/**/*'.freeze,
+ 'app/views/**/*'.freeze,
+ 'app/models/keymaps/**/*'.freeze,
].each { |path| load(File.join(base_path, path)) }
end
# @return [void]
def client_initialize!
@@ -101,11 +101,11 @@
#
# @param path [String]
# @return [Array<String>]
def loadables(path)
Dir.glob(path).select do |file|
- File.file?(file) && File.extname(file) == '.rb'
+ File.file?(file) && File.extname(file) == '.rb'.freeze
end
end
# @return [void]
def configure_log!
@@ -119,10 +119,10 @@
"Please update the 'root' setting in " \
"'config/configuration.rb' to start Vedeu using this " \
"controller and action: (args are optional)\n\n" \
"Vedeu.configure do\n" \
" root :some_controller, :show, *args\n" \
- "end\n\n"
+ "end\n\n".freeze
end
end # Bootstrap
end # Runtime