Sha256: 62ae7c8e727e722af57bce51502ee33c33ef683ed64d61822a340534b3864119
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
module OurKudos module Api module Controllers module ClientBase include OurKudos::Api::Controllers::ApiHelper def create current_user.ourkudos.post("/api/#{controller_name}.json", params[model_as_symbol]) end def update current_user.ourkudos.post("/api/#{controller_name}/#{mode_instance.id.to_s}.json", params[model_as_symbol]) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ourkudos-0.0.38 | lib/ourkudos/controllers/client_base.rb |