Sha256: fb7c452daa52ab3358dfe123697e5d86178835018ddaeba25d4e8e0646f1a0bb

Contents?: true

Size: 237 Bytes

Versions: 12

Compression:

Stored size: 237 Bytes

Contents

module ActiveAdmin
  class Model
    def initialize(resource, record)
      @record = record

      if resource
        @record.extend(resource.resource_name_extension)
      end
    end

    def to_model
      @record
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/active_admin/resource/model.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/active_admin/resource/model.rb
activeadmin-2.9.0 lib/active_admin/resource/model.rb
activeadmin-2.8.1 lib/active_admin/resource/model.rb
activeadmin-2.8.0 lib/active_admin/resource/model.rb
activeadmin-2.7.0 lib/active_admin/resource/model.rb
activeadmin-2.6.1 lib/active_admin/resource/model.rb
activeadmin-2.6.0 lib/active_admin/resource/model.rb
activeadmin-2.5.0 lib/active_admin/resource/model.rb
activeadmin-2.4.0 lib/active_admin/resource/model.rb
activeadmin-2.3.1 lib/active_admin/resource/model.rb
activeadmin-2.3.0 lib/active_admin/resource/model.rb