Displaying 1 result from an estimated 1 matches for "capaibilities".
Did you mean:
capabilities
2012 Jul 21
0
undefined method `scope' for non ActiveRecord class
...he method :scope is not defined ..
is there a way to include it ?
class SearchLocation
require ''geocoder''
include ActiveModel::Validations
include ActiveModel::Conversion
extend ActiveModel::Naming
extend Geocoder::Model::ActiveRecord # extending the class w
geocoding capaibilities ( from geocoder)
geocoded_by :address
reverse_geocoded_by :latitude, :longitude
...
I get the error in the geocoder/stores/active_record.rb : # scope:
geocoded objects
...lib/geocoder/stores/active_record.rb
require ''geocoder/stores/base''
# Add geocoding functionality to...