Sha256: 30294d255c65ef42c99b1c025f709c35a14e99b33fbef6cd52ee4705460eb9c7
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
module Picky module Sinatra module IndexActions def self.extended base base.post '/' do index_name = params[:index] index = Picky::Indexes[index_name.to_sym] data = params[:data] index.replace_from data if data end base.delete '/' do index_name = params[:index] index = Picky::Indexes[index_name.to_sym] id = params[:data][:id] index.remove id if id end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picky-4.0.7 | lib/picky/sinatra/index_actions.rb |