ginjo / rfm

FileMaker to Ruby adapter.
MIT License
45 stars 22 forks source link

:sort_field not working with field mapping #11

Closed stevestofiel closed 11 years ago

stevestofiel commented 11 years ago
module Rdat
  class Asset < Rfm::Base
      include Rfm::Config
      config :field_mapping => { "production_ruby::post_status" => 'post_status',
                                             "client_ruby::name" => 'client_name'
    }
.     
.
.
  end
end

r = Rdat::Asset

ready_for_masking = r.find({:client_name => "MyClient"},:sort_field => "production_ruby::post_status")
#Returns records

ready_for_masking = r.find({:client_name => "MyClient"},:sort_field => "post_status")

#Throws an error:
Rfm::Error::FieldMissingError: FieldMissingError occurred: (FileMaker Error #102)
ginjo commented 11 years ago

Thanks for pointing that out. Should be fixed now in v2.1.7

stevestofiel commented 11 years ago

Sweet Thanks!