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 Invoice | |
proprety :profile_id, :integer | |
property :total_charge, :decimal , :precision => 4, :scale => 2 | |
property :dyno_charges, :decimal , :precision => 4, :scale => 2 | |
end | |
class AddonCharge | |
property :invoice_id, :integer | |
property :addon_id, :integer | |
property :days_used, :integer |
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
From ecb97ef1cb7f7439210d4f21a384f213947641d8 Mon Sep 17 00:00:00 2001 | |
From: Hemant Kumar <[email protected]> | |
Date: Fri, 3 Dec 2010 23:40:29 +0530 | |
Subject: [PATCH 1/2] ignore idea file | |
--- | |
.gitignore | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
diff --git a/.gitignore b/.gitignore |
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
ails_bugmash/another> time be rails --version ruby-1.9.2-p290 | |
Rails 3.0.9 | |
bundle exec rails --version 0.89s user 0.21s system 99% cpu 1.104 total | |
rails_bugmash/another> time be rails runner test_script ruby-1.9.2-p290 | |
2011-07-23 23:34:38 +0530 | |
bundle exec rails runner test_script 1.73s user 0.35s system 99% cpu 2.084 total | |
rails_bugmash/another> cd ..cd ruby-1.9.2-p290 | |
cd: no such file or directory: ..cd | |
rails_bugmash/another> cd .. ruby-1.9.2-p290 | |
~/rails_bugmash> cd issue_734 |
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
Exception encountered by DatabaseCleaner in Cucumber After block: wrong number of arguments (3 for 2) | |
wrong number of arguments (3 for 2) (ArgumentError) | |
/Users/admin/nomads/showtime/vendor/bundle/ruby/1.9.1/gems/mysql2-0.2.7/lib/active_record/connection_adapters/mysql2_adapter.rb:634:in `select' | |
/Users/admin/checkout/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:9:in `select_all' | |
/Users/admin/checkout/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:62:in `select_all' |
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 @ShowTime.YAImageEditor | |
constructor: (@imageJson,@containerElement) -> | |
_.bindAll(this,'drawEnded','drawStarted',"saveImage","mouseMoved") | |
_.bindAll(this,'move') | |
@canvasContainer = @containerElement.find('.image_lightbox') | |
@toolbarContainer = @containerElement.find('.paint_toolbar') | |
@canvasWidth = 810 | |
@canvasHeight = 490 |
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
move: (dx,dy) -> | |
if @drawingBox? | |
@rectPath() | |
@drawingBox.attr(path : @positionArray) | |
else | |
@positionArray.push(["L",@currentPos.x,@currentPos.y]) | |
@drawingBox = @paper.path(@positionArray) | |
@setStrokeColor() |
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 ToolEvents | |
selectObjectsForMove: -> | |
@surface.undrag() | |
for svgObject in @svgObjects | |
svgObject.drag(@objectMoved, @dragStarted, @dragEnded) | |
@surface.attr(cursor: 'move') | |
prepareSurfaceForDraw: -> | |
for svgObject in @svgObjects |
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 'strscan' | |
# This is copied and slightly refactored from BareTest::TabularData | |
# | |
# Example | |
# LiteralParser.parse("nil") # => nil | |
# LiteralParser.parse(":foo") # => :foo | |
# LiteralParser.parse("123") # => 123 |
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 "active_support" | |
class CutPoint | |
def self.monitor(monitored_klass) | |
@local_instance = new() | |
@monitored_klass = monitored_klass | |
class << monitored_klass | |
cattr_accessor :local_instance |
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 Foo | |
def self.versions(a) | |
@@versions = a | |
end | |
def build_versions | |
@@versions.each do |key,value| | |
self.instance_eval &value | |
end | |
end |