Sha256: 124b54a807f8ae1b275125368c0521de0c0dc8868edfb60d4658c590d60050e1
Contents?: true
Size: 567 Bytes
Versions: 12
Compression:
Stored size: 567 Bytes
Contents
class AdminAssistant module Helper def admin_assistant_includes(opts = {}) ss_name = "admin_assistant/admin_assistant" ss_name << "_#{opts[:theme]}" if opts[:theme] tags = stylesheet_link_tag(ss_name) tags << stylesheet_link_tag("admin_assistant/token-input") js_dir = Pathname.new(Rails.root) + "public/javascripts/admin_assistant" Dir.entries(js_dir).each do |entry| if entry =~ /\.js$/ tags << javascript_include_tag("admin_assistant/#{entry}") end end tags end end end
Version data entries
12 entries across 12 versions & 1 rubygems