Sha256: ee84f36312862fd8080a99b3b4f7a01c1ab309b26019e0682cae32e7166f74ad
Contents?: true
Size: 516 Bytes
Versions: 7
Compression:
Stored size: 516 Bytes
Contents
class AdminAssistant module Helper def admin_assistant_includes(opts = {}) theme = opts[:theme] || 'default' tags = stylesheet_link_tag("admin_assistant/#{theme}") 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
7 entries across 7 versions & 1 rubygems