Sha256: 1506719dc98c0faaff7053eecea4ee6218fdf67f5238751ac3546a01edd06b33

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

require_dependency "jive_os_apps/application_controller"

module JiveOsApps
	class OsAppsController < ApplicationController
		def show
			@config = YAML.load(ERB.new(File.read("#{Rails.root}/config/jive_osapp_#{params[:app_name]}_config.yml")).result)[Rails.env]
		end

		def locale
			@config = YAML.load(ERB.new(File.read("#{Rails.root}/config/jive_osapp_#{params[:app_name]}_config.yml")).result)[Rails.env]
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jive_os_apps-0.0.2 app/controllers/jive_os_apps/os_apps_controller.rb
jive_os_apps-0.0.1 app/controllers/jive_os_apps/os_apps_controller.rb