lib/active_admin/asset_registration.rb



# frozen_string_literal: true
module ActiveAdmin
  module AssetRegistration

    def register_stylesheet(path, options = {})
      stylesheets[path] = options
    end

    def stylesheets
      @stylesheets ||= {}
    end

    def clear_stylesheets!
      stylesheets.clear
    end

    def register_javascript(path, options = {})
      javascripts[path] = options
    end

    def javascripts
      @javascripts ||= {}
    end

    def clear_javascripts!
      javascripts.clear
    end

  end
end