Sha256: 7f62dbb41aeb3cad39d03e0276e7f4a5522925569ae5933eab7ee45cd5cb8703

Contents?: true

Size: 453 Bytes

Versions: 50

Compression:

Stored size: 453 Bytes

Contents

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(name)
      javascripts.add name
    end

    def javascripts
      @javascripts ||= Set.new
    end

    def clear_javascripts!
      javascripts.clear
    end

  end
end

Version data entries

50 entries across 50 versions & 7 rubygems

Version Path
activeadmin-rails-1.7.1 lib/active_admin/asset_registration.rb
activeadmin-rails-1.7.0 lib/active_admin/asset_registration.rb
activeadmin-rb-1.6.0 lib/active_admin/asset_registration.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/active_admin/asset_registration.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/active_admin/asset_registration.rb
activeadmin-rb-1.5.2 lib/active_admin/asset_registration.rb
activeadmin-2.9.0 lib/active_admin/asset_registration.rb
activeadmin-2.8.1 lib/active_admin/asset_registration.rb
activeadmin-2.8.0 lib/active_admin/asset_registration.rb
activeadmin-rb-1.5.1 lib/active_admin/asset_registration.rb
activeadmin-2.7.0 lib/active_admin/asset_registration.rb
activeadmin-2.6.1 lib/active_admin/asset_registration.rb
activeadmin-2.6.0 lib/active_admin/asset_registration.rb
activeadmin-2.5.0 lib/active_admin/asset_registration.rb
activeadmin-2.4.0 lib/active_admin/asset_registration.rb
activeadmin-2.3.1 lib/active_admin/asset_registration.rb
activeadmin-2.3.0 lib/active_admin/asset_registration.rb
activeadmin-2.2.0 lib/active_admin/asset_registration.rb
activeadmin-2.1.0 lib/active_admin/asset_registration.rb
activeadmin-2.0.0 lib/active_admin/asset_registration.rb