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

Version Path
admin_assistant-2.4.0 lib/admin_assistant/helper.rb
admin_assistant-2.3.2 lib/admin_assistant/helper.rb
admin_assistant-2.3.1 lib/admin_assistant/helper.rb
admin_assistant-2.3.0 lib/admin_assistant/helper.rb
admin_assistant-2.2.8 lib/admin_assistant/helper.rb
admin_assistant-2.2.7 lib/admin_assistant/helper.rb
admin_assistant-2.2.6 lib/admin_assistant/helper.rb
admin_assistant-2.2.5 lib/admin_assistant/helper.rb
admin_assistant-2.2.4 lib/admin_assistant/helper.rb
admin_assistant-2.2.3 lib/admin_assistant/helper.rb
admin_assistant-2.2.2 lib/admin_assistant/helper.rb
admin_assistant-2.2.1 lib/admin_assistant/helper.rb