Sha256: 0afa3226960d1acdb7e2a5c9858ebf784724896d2af68b3317cea54f83e8e965

Contents?: true

Size: 216 Bytes

Versions: 10

Compression:

Stored size: 216 Bytes

Contents

module EntityFieldTypes
  class StatusField
    def run(field_name, model_klass_name)
      resource_klass = model_klass_name.constantize
      resource_klass.public_send(field_name.pluralize).keys
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
simpleadmin-1.4.0 app/services/entity_field_types/status_field.rb
simpleadmin-1.3.0 app/services/entity_field_types/status_field.rb
simpleadmin-1.2.7 app/services/entity_field_types/status_field.rb
simpleadmin-1.2.6 app/services/entity_field_types/status_field.rb
simpleadmin-1.2.5 app/services/entity_field_types/status_field.rb
simpleadmin-1.2.4 app/services/entity_field_types/status_field.rb
simpleadmin-1.2.3 app/services/entity_field_types/status_field.rb
simpleadmin-1.2.2 app/services/entity_field_types/status_field.rb
simpleadmin-1.2.1 app/services/entity_field_types/status_field.rb
simpleadmin-1.2.0 app/services/entity_field_types/status_field.rb