Sha256: 4c75e756a84286710c72e5d74c3881126a78361ec48663d0c3e7bd337b78ecda

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

module ActiveAdmin
  class Resource
    attr_accessor :form_columns
    attr_accessor :form_associations
    attr_accessor :active_association_form
  end
  
  class << self
    def resources
      application.namespaces.values.map{|n| n.resources.resources }.flatten.compact.map(&:resource_class)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aa_associations-0.1.1 lib/active_admin_associations/active_admin_extensions.rb
aa_associations-0.1.0 lib/active_admin_associations/active_admin_extensions.rb