This file contains hidden or 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
| [ | |
| { | |
| "created_at": "2010-11-23T14:04:12Z", | |
| "frame_rate": 25.0, | |
| "title": "Test", | |
| "audio_channels": 1, | |
| "audio_sample_rate": 22050, | |
| "updated_at": "2010-11-23T14:04:12Z", | |
| "account_id": "4cebc7b25412902dda00003a", | |
| "audio_bitrate": 64, |
This file contains hidden or 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
| { | |
| "created_at": "2010-11-23T14:04:12Z", | |
| "frame_rate": 25.0, | |
| "title": "Test", | |
| "audio_channels": 1, | |
| "audio_sample_rate": 22050, | |
| "updated_at": "2010-11-23T14:04:12Z", | |
| "account_id": "4cebc7b25412902dda00003a", | |
| "audio_bitrate": 64, | |
| "tags": [ |
This file contains hidden or 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
| require 'rubygems' | |
| require 'bundler' | |
| Bundler.require | |
| Mongoid.configure do |config| | |
| config.master = Mongo::Connection.new.db('testing') | |
| end | |
| class Account | |
| include Mongoid::Document |
This file contains hidden or 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
| sv: | |
| formtastic: | |
| :yes: Ja | |
| :no: Nej | |
| create: Skapa | |
| save: Spara | |
| submit: Skicka | |
| required: Obligatorisk |
This file contains hidden or 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
| source 'http://rubygems.org' | |
| gem 'rails' | |
| # Essential | |
| gem "devise" | |
| gem 'bson_ext' | |
| gem 'mongoid', ">= 2.0.0.beta" | |
| gem 'mongoid_grid', :require => "mongoid/grid" | |
| gem 'SystemTimer' |
This file contains hidden or 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 Account | |
| include Mongoid::Document | |
| references_many :videos | |
| end | |
| class Video | |
| include Mongoid::Document | |
| referenced_in :account |
This file contains hidden or 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 Account | |
| include Mongoid::Document | |
| embeds_many :memberships | |
| field :name, :type => String | |
| validates_presence_of :name | |
| end |
This file contains hidden or 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
| module Payex | |
| mattr_accessor :account_number | |
| mattr_accessor :encryption_key | |
| MD5_CHECK_FIELDS = { | |
| "pxorder/pxorder.asmx/Initialize7" => [:accountNumber, :purchaseOperation, :price, :priceArgList, :currency, :vat, :orderID, :productNumber, :description, :clientIPAddress, :clientIdentifier, :additionalValues, :externalID, :returnUrl, :view, :agreementRef, :cancelUrl, :clientLanguage], | |
| "pxagreement/pxagreement.asmx/CreateAgreement3" => [:accountNumber, :merchantRef, :description, :purchaseOperation, :maxAmount, :notifyUrl, :startDate, :stopDate], | |
| "pxagreement/pxagreement.asmx/DeleteAgreement" => [:accountNumber, :agreementRef], | |
| "pxorder/pxorder.asmx/Complete" => [:accountNumber, :orderRef], | |
| "pxagreement/pxagreement.asmx/AutoPay2" => [:accountNumber, :agreementRef, :price, :productNumber, :description, :orderId, :purchaseOperation], |
This file contains hidden or 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
| { | |
| "account_id":"4c57f3975412901427000005", | |
| "tags":["Community"], | |
| "title":"SpringCampaign", | |
| "id":"4dc938f154129008fe000002" | |
| } |
This file contains hidden or 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
| [ | |
| { | |
| "account_id":"4c57f3975412901427000005", | |
| "tags":["Community"], | |
| "title":"SpringCampaign", | |
| "id":"4dc938f154129008fe000002" | |
| } | |
| ] |