Sha256: 1c0f08aba5e56e7e3ed9dd744262830b6a38577daa2d72df9c91545ad8123a97
Contents?: true
Size: 953 Bytes
Versions: 1
Compression:
Stored size: 953 Bytes
Contents
module EyeballsRailsHelper def eyeballs_javascripts(*mixin_javascripts) javascripts = ['vendor/jquery/jquery-1.4.2.min.js', 'vendor/jquery/jquery.livequery.js'] javascripts << mixin_javascripts javascripts << ['vendor/mustache/mustache.0.3.0.js', 'vendor/eyeballs/o_O', 'vendor/eyeballs/modules/o_O.model', 'vendor/eyeballs/modules/o_O.validations', 'vendor/eyeballs/drivers/jquery/adapters/o_O.rest', 'vendor/eyeballs/drivers/jquery/modules/o_O.controller', 'vendor/eyeballs/drivers/jquery/modules/o_O.support', 'vendor/eyeballs/drivers/jquery/modules/o_O.routes', 'config/routes', 'config/initializer'] ["app/models", "app/controllers"].each do |dir| Dir["#{Rails.root}/public/javascripts/#{dir}/*.js"].collect do |file| javascripts << "#{dir}/#{File.basename(file)}" end end if javascripts.any? javascript_include_tag(javascripts) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eyeballs_rails-0.1.2 | app/helpers/eyeballs_rails_helper.rb |