Sha256: e7f31428f460c15ab19ec386fc6001aae31166cf4180f1299893b751d17ed7c3
Contents?: true
Size: 823 Bytes
Versions: 5
Compression:
Stored size: 823 Bytes
Contents
class NetzkeController < ActionController::Base # collect javascripts from all plugins that registered it in Netzke::Base.config[:javascripts] def netzke respond_to do |format| format.js { res = "" Netzke::Base.config[:javascripts].each do |path| f = File.new(path) res << f.read end render :text => res.strip_js_comments } format.css { res = "" Netzke::Base.config[:stylesheets].each do |path| f = File.new(path) res << f.read end render :text => res } end end def method_missing(action) respond_to do |format| format.js { render :text => "#{action}.js" } format.css { render :text => "#{action}.css" } end end end
Version data entries
5 entries across 5 versions & 1 rubygems