-
Define the adapter on lib/billing_adapters, with public methods
def transaction_success?(params) def transaction_message(params) def save_response(installation, params)
-
Implement the model to store info on models/subscriptions/ and define public methods
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 Brochure < ActiveRecord::Base | |
| belongs_to :property | |
| has_many :brochure_receipts | |
| def recipients | |
| subscriber_ids = Subscription.where(property_type: property.property_details_type).pluck(:subscriber_id) | |
| User.where.not(id: brochure_receipts.prospect_ids).where(id: subscriber_ids) | |
| end | |
| def upload_mail_template |
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
| !!! Strict | |
| %html{:xmlns => "http://www.w3.org/1999/xhtml"} | |
| %head | |
| %meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/ | |
| %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/ | |
| %title Kanbanpad Welcome Email | |
| != haml(:'email/_css_block', :layout => false) | |
| %body | |
| / Wrapper/Container Table: Use a wrapper table to control the width and the background color consistently of your email. Use this approach instead of setting attributes on the body tag. | |
| %table#backgroundTable{:bgcolor => "#202020", :border => "0", :cellpadding => "40", :cellspacing => "0"} |
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
| ActiveRecord::Schema.define(version: 20130830072500) do | |
| # These are extensions that must be enabled in order to support this database | |
| enable_extension "plpgsql" |
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
| rake aborted! | |
| PG::Error: ERROR: syntax error at or near "EXTENSION" | |
| LINE 1: CREATE EXTENSION IF NOT EXISTS "plpgsql" | |
| ^ | |
| : CREATE EXTENSION IF NOT EXISTS "plpgsql" | |
| /Users/cristianvasquez/.rvm/gems/ruby-2.0.0-p0@offmarket/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:768:in `exec' | |
| /Users/cristianvasquez/.rvm/gems/ruby-2.0.0-p0@offmarket/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:768:in `exec_no_cache' | |
| /Users/cristianvasquez/.rvm/gems/ruby-2.0.0-p0@offmarket/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:138:in `block in exec_query' | |
| /Users/cristianvasquez/.rvm/gems/ruby-2.0.0-p0@offmarket/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:425:in `block in log' | |
| /Users/cristianvasquez/.rvm/gems/ruby-2.0.0-p0@offmarket/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument' |
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
| ActiveRecord::Schema.define(version: 20130830072500) do | |
| # These are extensions that must be enabled in order to support this database | |
| enable_extension "plpgsql" |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0rRsDR7TZoGND2RFLMxAtVWjgdzi8yx/kX9OkfC15EL1p7dcg62WVMfo6zdiaa4uFo1UnafIo3fIsGdjEUJytFwvg0m15lmS454+pTnBBgrMXEvZAQp8TfSpIbL7PTRPHAYgnqovlfx1LLShFXxWILwx5b5sjzrcP22WOBTmC1+ECDff0St3C3CxmUxvnCKACvLj/sXEBtAEdQWMhglur1uJ5aybWXoxRv6f7b5HQSKS6EAdvgw6Vi2kuLlIN/s+QWS469R+0b9sm524uX6JVkK32mQNihdeTvuaDok1uJJwVBvqnPNvfnV321T6nYRspFFNjG6ClDUOaiMwTzeryQ== tekkub@gmail.com |
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 DashboardController < ApplicationController | |
| before_filter :authenticate_user! | |
| layout 'dashboard' | |
| def index | |
| @properties = current_user.properties | |
| end | |
| 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
| set guifont=Monaco:h12 | |
| map <F2> :NERDTreeToggle<cr> | |
| map <F3> :TlistToggle<cr> | |
| map <F4> :tabnew<cr> | |
| map <G> :Gstatus<cr> | |
| map <F5> :ZoomWin<cr> | |
| highlight LineNr guifg=gray | |
| highlight LineNr guibg=#2D2D2D | |
| colorscheme molokai | |
| if has("gui_running") |
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
| [user] | |
| name = CristianV | |
| email = Cristia@hlmbusiness.com | |
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| [use] | |
| email = cristianvg2003@gmail.com | |
| [alias] |