Sha256: 352a2f1bb63b77ca0c1176327313b8535da32551edcf9df3c17b098dbdf5b6fb

Contents?: true

Size: 464 Bytes

Versions: 9

Compression:

Stored size: 464 Bytes

Contents

module ActiveAdmin
  module AssetRegistration

    # Stylesheets

    def register_stylesheet(name)
      stylesheets << name
    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
end

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
andrewroth_activeadmin-0.3.4 lib/active_admin/asset_registration.rb
activeadmin-0.3.4 lib/active_admin/asset_registration.rb
activeadmin-0.3.3 lib/active_admin/asset_registration.rb
activeadmin-0.3.2 lib/active_admin/asset_registration.rb
activeadmin-0.3.1 lib/active_admin/asset_registration.rb
activeadmin-0.3.0 lib/active_admin/asset_registration.rb
nsm-activeadmin-0.2.2 lib/active_admin/asset_registration.rb
saulolso-activeadmin-0.2.2.1 lib/active_admin/asset_registration.rb
saulolso-activeadmin-0.2.2 lib/active_admin/asset_registration.rb