Closed gosuto closed 10 years ago
the boolean checker is meant to give you this information, see checker here: https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Model-Customization
The "checker" only tells you if that particular record needs to be geocoded or not.
I want to know if process_geocoding is on or off (for the entire model).
Ben
gmaps4rails_options
bears your solution
It must just be a syntax issue . . . I know how to set process_geocoding to true or false, I just don't know how to query the current value. Sorry if I'm being dense.
your_object.gmaps4rails_options will give you the answer
Heh, I was trying My_class.gmaps4rails_options which was throwing an error. Didn't occur to me to call gmaps4rails_options on the instance. Thanks!
This is a followup to http://stackoverflow.com/questions/18903126/gmaps4rails-how-to-check-value-of-process-geocoding
How do I check the current state of process_geocoding (whether it is true or false)?
I know this is a question (and probably a fairly stupid question honestly) and not an issue but I wasn't getting any response over at SO so I thought I'd try here.
Thanks!
Ben