View ci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
deploy-job-staging: | |
docker: | |
- image: circleci/ruby | |
working_directory: ~/repo | |
steps: | |
- checkout | |
- add_ssh_keys: | |
fingerprints: |
View braintree.slim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script src="https://js.braintreegateway.com/web/dropin/1.9.4/js/dropin.min.js" | |
javascript: | |
var form = document.querySelector('.payment'); | |
var client_token = "#{component.client_token}"; | |
braintree.dropin.create({ | |
authorization: client_token, | |
container: '#bt-dropin', | |
paypal: { |
View script_organisation.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------------------- | |
# Playground | |
class Playground | |
constructor: (playground) -> | |
@playground = $(playground) | |
@setEvents() | |
@getExamples() | |
View page.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------ | |
# Page | |
Page = {} | |
# ------------------------------------------------------ | |
# Page App |
View asger.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in web_module.rb | |
field :attachment_id, type: BSON::ObjectId | |
def attachment | |
Attachment.find(attachment_id) | |
end | |
# then you can try |
View Page.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Page | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
include Mongoid::Userstamp | |
include Mongoid::Slug | |
include MongoidVersioning::Versioned | |
include Mongoid::Ancestry | |
has_ancestry | |
# --------------------------------------------------------------------- |