Sha256: c53aac7e3e118f0325a11ba653799f1eef06f8623b72e824eb7fe3ac22c447ed

Contents?: true

Size: 346 Bytes

Versions: 2

Compression:

Stored size: 346 Bytes

Contents

# -*- encoding : utf-8 -*-
module RademadeAdmin
  module Model
    class Reflection
      module Uploader

        def uploaders
          @model.respond_to?(:uploaders) ? @model.uploaders : []
        end

        def uploader_fields
          @model.respond_to?(:uploaders) ? @model.uploaders.keys : []
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rademade_admin-0.0.3 lib/rademade_admin/model/reflection/uploader.rb
rademade_admin-0.0.2 lib/rademade_admin/model/reflection/uploader.rb