fabrik42/acts_as_api — pull request #62 by niedhui (2012-04-01 06:31:17+00:00)
Title: Support options params for as_api_response

Hi, i add an options params for as_api_response,eg

api_accessible :with_distance do |t|
t.add ->(model,options) { model.cal_distance(options[:loc]) } , as: :distance
end

model.as_api_response(:with_distance,{loc: [12,13]})