Sha256: 177b61610263e8bb0be31f4e9a5ce05ec1d648768936a347f2a6f904adbf6b19

Contents?: true

Size: 261 Bytes

Versions: 9

Compression:

Stored size: 261 Bytes

Contents

class ActiveAdmin::Views::Pages::Base
  alias_method :original_build, :build

  def build(*args)
    original_build(args)
    body = get_elements_by_tag_name("body").first
    body.set_attribute "data-default-select", ActiveadminAddons.default_select
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
activeadmin_addons-2.0.0.beta.3 lib/activeadmin_addons/active_admin_config.rb
activeadmin_addons-1.10.1 lib/activeadmin_addons/active_admin_config.rb
activeadmin_addons-2.0.0.beta.2 lib/activeadmin_addons/active_admin_config.rb
activeadmin_addons-2.0.0.beta.0 lib/activeadmin_addons/active_admin_config.rb
activeadmin_addons-1.10.0 lib/activeadmin_addons/active_admin_config.rb
activeadmin_addons-1.9.0 lib/activeadmin_addons/active_admin_config.rb
activeadmin_addons-1.8.3 lib/activeadmin_addons/active_admin_config.rb
activeadmin_addons-1.8.2 lib/activeadmin_addons/active_admin_config.rb
activeadmin_addons_rails6-1.7.2 lib/activeadmin_addons/active_admin_config.rb