Sha256: b2591555319828d77c73ec5ed19be84720b8aa7ef3408bdc219e9e5159b5094a
Contents?: true
Size: 731 Bytes
Versions: 59
Compression:
Stored size: 731 Bytes
Contents
module ActiveAdmin module AssetRegistration # Stylesheets def register_stylesheet(*args) stylesheets << ActiveAdmin::Stylesheet.new(*args) end def stylesheets @stylesheets ||= [] end def clear_stylesheets! @stylesheets = [] end # Javascripts def register_javascript(name) javascripts << name end def javascripts @javascripts ||= [] end def clear_javascripts! @javascripts = [] end end # Wrapper class for stylesheet registration class Stylesheet attr_reader :options, :path def initialize(*args) @options = args.extract_options! @path = args.first if args.first end end end
Version data entries
59 entries across 59 versions & 3 rubygems