Skip to content

Instantly share code, notes, and snippets.

View 1990prashant's full-sized avatar

Prashant Kumar Mishra 1990prashant

View GitHub Profile
@1990prashant
1990prashant / Capfile
Last active February 23, 2017 09:37
Deploying rails server on production using capistrano gem
#CapFile
load 'deploy'
load 'deploy/assets'
load 'config/deploy'
@1990prashant
1990prashant / terminal
Created March 30, 2016 10:22
Referesh Paperclip images without reuploading
bundle exec rake paperclip:refresh CLASS=Spree::ClassName
@1990prashant
1990prashant / order_contents_decorator.rb
Created May 24, 2016 07:35
Add new fields in order's line items
#This is the last file where you need to change
module Spree
OrderContents.class_eval do
def initialize(order)
@order = order
end
def add(variant, quantity = 1, options = {}, attributes_name)
timestamp = Time.current
@1990prashant
1990prashant / application.html.slim
Created September 13, 2016 07:25
ChatBox Configuration
//Add following line of code if you want to use default chatbox
//Replace value of data-key with your api_key
script src="http://staging.simmpli.com/dist/chatbox.min.js" id="chatboxInit" data-key="1fad50443e7dfcb98f61fcc37386e5af728727daaff1c565"