Sha256: d6018bad74e2392353e8c71c0eee1aef8575159af5d2c4b7926e09c87ee0b271
Contents?: true
Size: 422 Bytes
Versions: 94
Compression:
Stored size: 422 Bytes
Contents
module Usage class CodeSnippetController < ApplicationController skip_before_action :verify_authenticity_token def create event = ::Usage::CodeSnippetEvent.new( language: params['language'], snippet: params['snippet'], action: params['event'], section: params['section'], ip: request.remote_ip ) event.save! render json: event end end end
Version data entries
94 entries across 94 versions & 1 rubygems