class TengineRailsPlugin::Railtie
Public Instance Methods
expandpath(app, str) { |yml| ... }
click to toggle source
# File lib/tengine_rails_plugin.rb, line 5 def expandpath app, str app.paths["config"].expanded.each do |d| yml = File.expand_path(str, d) if File.exist?(yml) yield yml else str = "#{yml} not found, write one please." Rails.logger.error(str) STDERR.puts(str) if STDERR.isatty end end end