config/initializers/core_extensions.rb
# options is there so that we can pass in the :serialize => true option in the cases where we were using Yaml...
# I am going to try NOT doing anything with that option right now, to see if it works.  If not, however, I want
# to at least have it passed in when we needed it, so the code can change later if needed.
options is there so that we can pass in the :serialize => true option in the cases where we were using Yaml
I am going to try NOT doing anything with that option right now, to see if it works.  If not, however, I want
to at least have it passed in when we needed it, so the code can change later if needed.
options is there so that we can pass in the : serialize = > true option in the cases where we were using Yaml I am going to try NOT doing anything with that option right now to see if it works . If not however I want to at least have it passed in when we needed it so the code can change later if needed .
def cached_find(field, value, options = {})
        key = "#{field}/#{value}"
        r = cached(key, options) do
          r = send("find_by_#{field}", value, :include => options[:include])
        end
        r
      end
def cached_find ( field , value , options = { } ) key = "#{field}/#{value}" r = cached ( key , options ) do r = send ( "find_by_#{field}" , value , :include => options [ :include ] ) end r end
options is there so that we can pass in the :serialize => true option in the cases where we were using Yaml...
options is there so that we can pass in the : serialize = > true option in the cases where we were using Yaml ...
field
<not_specific>
value
<not_specific>
options
<not_specific>