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 GraphsController < ApplicationController | |
def top | |
@graph = open_flash_chart_object(1200, 500, '/graphs/bar_chart') | |
end | |
def bar_chart | |
top = Customer.find(:all, :select => 'sum(CMS.ORD_TOTAL) AS total, CUST.COMPANY', :group => 'CMS.CUSTNUM, CUST.COMPANY', :joins => [:orders], :limit => 10, :order => 'total DESC') | |
bar = BarOutline.new(50, '#9933CC', '#8010A0') |
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
def attending_doctor_id | |
@patient_care_path.attending_doctor.id if @patient_care_path | |
end |
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
{{#each field in fields}} | |
{{#each error in emberObject.field}} | |
{{/each}} | |
{{/each}} |
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
parsed_date = DateTime.strptime(primary_event_params[:scheduled_for], '%m/%d/%y') |
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
@messages = @messages | |
.joins(recommender: { care_team_member: :member }) | |
.where(member: { id: params[:recommender] }) |
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
max = 7 | |
count = 7 | |
active = 3 | |
inactive = 4 | |
Waiting on global queue: 25 | |
----------- Application groups ----------- | |
/data/behaving-app/current: | |
App root: /data/behaving-app/current | |
* PID: 5507 Sessions: 0 Processed: 137 Uptime: 1h 51m 32s |
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
begin | |
require 'spec' | |
rescue LoadError | |
require 'rubygems' | |
gem 'rspec' | |
require 'spec' | |
end | |
Spec::Runner.configure do |config| | |
config.mock_with :flexmock |
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
require 'spec_helper.rb' | |
describe "Migration" do | |
before do | |
@record = mock('record', {:name => 'Pete'}) | |
MyModel = mock('MyModel Class', {:count => 1, :find => [@record]}) | |
require 'my_migration' | |
@migration = MyMigration.new | |
end |
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
require File.dirname(__FILE__) + '/spec_helper.rb' | |
APP_ROOT = File.dirname(__FILE__) + "/../tmp" | |
require 'rubygems' | |
require 'rubigen' | |
require 'rubigen/scripts/generate' | |
describe 'LegacyModelGenerator' do | |
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 { | |
size: letter; | |
margin-top: 1.75in; | |
margin-right: 0.25in; | |
margin-bottom: 0.25in; | |
margin-left: 0.25in; | |
@top-center | |
{ |
OlderNewer