code stringlengths 1 1.73M | language stringclasses 1
value |
|---|---|
# Esta clase maneja los curriculums cargados para los OGX Trainees. Permite buscar ogxtrainees a partir de tags en los mismos.
class OgxcurriculumsController < ApplicationController
before_filter :get_mod_cv, :only => [:new, :edit, :delete]
# Recupera todos los cv para ser mostrados en pantalla.
def index
@og... | Ruby |
# Es la clase que controla las entidades asociadas a AIESEC. Pueden ser entidades educativas, empresas, etc.
# Los Account Managers se comunican con la misma a través de los contactos.
class CuentasController < ApplicationController
before_filter :ensure_login
before_filter :get_mod, :only => [:new,:edit, :del... | Ruby |
# Esta clase maneja las comunicaciones con el cliente, cuando se logra una donación.
# Existen 2 etapas en este proceso:
# 1 - Se carga la comunicación con el cliente (ingreso) en donde se estipula que va a haber una donación próxima.
# 2 - El cliente realiza la transferencia y se crea la donación con un monto.
class... | Ruby |
# Esta clase maneja los contactos asociados a una cuenta. Para poder cargar comunicaciones, se necesita lograr un vínculo con la entidad, y esto se logra a través de los contactos.
class ContactosController < ApplicationController
before_filter :ensure_login
before_filter :get_mod, :only => [:new,:edit, :delete]... | Ruby |
# Esta clase maneja los curriculums cargados para los Trainees. Permite buscar trainees a partir de tags en los mismos.
class CurriculumsController < ApplicationController
before_filter :get_mod_cv, :only => [:new,:edit, :delete]
# Recupera todos los cv para ser mostrados en pantalla.
def index
@curriculum... | Ruby |
# Esta clase maneja los fondos que ingresan a AIESEC de parte de las entidades, en motivo de donaciones.
class DonacionesController < ApplicationController
ingreso = 0
before_filter :ensure_login
# Recupera todas las donaciones para ser mostradas en pantalla.
def index
@donacion = Donacion.search(params[:sea... | Ruby |
# Esta clase permite menejar los Trainees. Estos se diferencian de los ogxtrainees, ya que son trainees del exterior, que son candidatos a realizar una experiencia en nuestro país.
class TraineesController < ApplicationController
before_filter :ensure_login
before_filter :get_mod, :only => [:new,:edit, :delete]
#... | Ruby |
# Esta clase define a la reunión como un tipo de comunicación. Es el segundo paso en el proceso de una venta.
class ReunionesController < ComunicacionesController
@@html_id = 'reu_form'
# Crea la reunión.
def create
@comunicacion = Reunion.new(params[:reunion])
@cuenta = Cuenta.find(params[:cuenta_id]) ... | Ruby |
# Esta clase maneja los archivos ingresados en el módulo de Marketing
class ArchivosController < ApplicationController
before_filter :get_mod, :only => [:new,:edit, :delete]
# Recuera todos los archivos que van a ser mostrados.
def index
@archivos = Archivo.find(:all)
respond_to do |format|
format.h... | Ruby |
# Esta clase maneja el reporte de finanzas debido a las entradas de dinero a AIESEC.
# Esto puede ser por medio de VENTAS efectivas o DONACIONES.
class FinanzasController < ApplicationController
before_filter :ensure_login
# Recupera ventas y donaciones realizadas para ser mostradas en pantalla.
def index
cu... | Ruby |
# Esta clase permite determinar las tarifas de trainee que van a ser manejadas en caso de asignar un trainee a una venta.
class PreciosController < ApplicationController
before_filter :ensure_adm
# Recupera todas las tarifas.
def index
@precios = Precio.search(params[:search],params[:page])
respond_to do ... | Ruby |
# Esta clase maneja los estados posibles de los trainees.
class EstadosTraineeController < ApplicationController
before_filter :ensure_adm
# Recupera todos los estados de trainees para ser mostrados en pantalla.
def index
@estados_trainee = EstadoTrainee.search_all(params[:search],params[:page])
... | Ruby |
# Esta clase controla los usuarios que utilizan el sistema.
class UsersController < ApplicationController
before_filter :ensure_adm,:only => [:index,:new,:edit,:delete]
# Prepara la pantalla de bienvenida de un usuario al loguearse al sistema.
# Muestras las cuentas asignadas, los últimos movimientos y las últimas... | Ruby |
# Esta clase engloba los ingresos por donaciones, los posicionamientos y los archivos cargados en el módulo de Marketing.
class MarketingtasksController < ApplicationController
before_filter :ensure_login
# Recupera todos los posicionamientos, ingresos y archivos para ser mostrados en pantalla.
def index
cuenta... | Ruby |
# Esta clase posee métodos accesibles por todas las clases de la aplicación.
class ApplicationController < ActionController::Base
include AuthenticatedSystem
helper :all # include all helpers, all the time
before_filter :maintain_session_and_user
# See ActionController::RequestForgeryProtection for detail... | Ruby |
# Esta clase define al movimiento como un tipo de comunicación. Es el primer paso en el proceso de una venta.
class MovimientosController < ComunicacionesController
@@html_id = 'mov_form'
# Crea el movimiento.
def create
@comunicacion = Movimiento.new(params[:movimiento])
@cuenta = Cuenta.find(params[:c... | Ruby |
# Esta clase permite manejar el posicionamiento de AIESEC en eventos organizados por las entidades.
class PosicionamientosController < ComunicacionesController
before_filter :get_mod, :only => [:new,:edit, :delete]
@@html_id = 'pos_form'
# Crea el posicionamiento.
def create
@comunicacion = Posicionamiento... | Ruby |
# Esta clase permite menejar los OGX Trainees. Estos se diferencian de los trainees, ya que son trainees locales, que son candidatos a realizar una experiencia en el exterior.
class OgxtraineesController < ApplicationController
before_filter :ensure_login
before_filter :get_mod, :only => [:new,:edit, :delete]
# ... | Ruby |
# Esta clase maneja los estados posibles de una cuenta.
class EstadosCuentaController < ApplicationController
before_filter :ensure_adm
# Recupera todas los estados de cuenta para ser mostrados en pantalla.
def index
@estados_cuenta = EstadoCuenta.search_all(params[:search],params[:page])
respond_t... | Ruby |
# Esta clase maneja los equipos de usuarios. Estos se agrupan con fines de aumentar la perfomance general, formentando la competencia entre los integrantes de AIESEC.
class EquiposController < ApplicationController
before_filter :ensure_adm
# Recuera todos los equipos que van a ser mostrados.
def index
@e... | Ruby |
# Esta clase define a la venta como un tipo de comunicación. Es el tercer paso en el proceso de una venta.
# A partir de esta instancia, el módulo de IEXCHANGES se encargará de asignar un trainee a la venta.
class VentasController < ComunicacionesController
@@html_id = 'ven_form'
# Crea la venta.
def create
... | Ruby |
# Esta clase permite visualizar la perfomance por usuario o por equipo de los Account Managers.
class ReportesController < ApplicationController
before_filter :ensure_login
before_filter :get_mod, :only => [:new,:edit, :delete]
require 'gruff'
# Prepara el nuevo reporte para ser creado.
def new
@reporte ... | Ruby |
# Esta clase maneja los roles de usuario que van a ser utilizados por el sistema.
class RoleUsersController < ApplicationController
before_filter :ensure_login
before_filter :ensure_adm
# Recupera todos los roles de usuario.
def index
@role_users = RoleUser.search(params[:search], params[:page])
... | Ruby |
# Esta clase controla las modificaciones y las asignaciones/desasignaciones que tuvo un trainee.
# Sirve para hacer un seguimiento de los mismos a través del tiempo.
class LogTraineesController < ApplicationController
end
| Ruby |
# Esta clase maneja las comunicaciones que son cargadas por los Account Managers. Llevando un registro de las mismas, se puede medir la perfomance de venta por usuario o por equipo.
# Pueden ser: Movimientos, Reuniones, Ventas, Posicionamientos, e Ingresos.
class ComunicacionesController < ApplicationController
befo... | Ruby |
# Esta clase permite asignar los trainees a las ventas realizadas.
class InexchangesController < ApplicationController
before_filter :ensure_login
# Recupera todas las realizadas.
def index
trainee_id = params[:trainee_id]
contacto_id = params[:contacto_id]
@colspan = 2
if contacto_id.to_i != 0 th... | Ruby |
# Esta clase controlla el login/logout del sistema.
class SessionsController < ApplicationController
before_filter :login_home, :only => [:new]
def new
end
# Crea la nueva sesión mediante el ingreso de un usuario existente al sistema (login).
def create
self.current_user = User.authenticate(params[:log... | Ruby |
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# i... | Ruby |
# These settings change the behavior of Rails 2 apps and will be defaults
# for Rails 3. You can remove this initializer when Rails 3 is released.
# Include Active Record class name as root for JSON serialized output.
ActiveRecord::Base.include_root_in_json = true
# Store the full class name (including module namespa... | Ruby |
# Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register_alias "text/html", :iphone
| Ruby |
ActionController::Routing::Routes.draw do |map|
map.resources :usuario_cuentas
map.resources :role_users
map.resources :metricas
map.resources :equipos
map.resource :session
map.signup '/signup', :controller => 'users', :action => 'new'
map.login '/login', :controller => 'sessions', :action =... | Ruby |
# Don't change this file!
# Configure your app in config/environment.rb and config/environments/*.rb
RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
module Rails
class << self
def boot!
unless booted?
preinitialize
pick_boot.run
end
end
def booted?
... | Ruby |
# Be sure to restart your server when you modify this file
# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.1... | Ruby |
# Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new
# Full error repor... | Ruby |
# Settings specified here will take precedence over those in config/environment.rb
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the webserver when you make code changes.
config.ca... | Ruby |
# Settings specified here will take precedence over those in config/environment.rb
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between... | Ruby |
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
| Ruby |
# Este módulo maneja la autenticación del usuario al sistema.
module AuthenticatedSystem
protected
# Devuelve verdadero si hay un usuario logueado al sistema, y false en caso contrario.
def logged_in?
!!current_user
end
# Provee el acceso al usuario actual logueado.
def current_user
... | Ruby |
module AuthenticatedTestHelper
# Sets the current user in the session from the user fixtures.
def login_as(user)
@request.session[:user_id] = user ? users(user).id : nil
end
def authorize_as(user)
@request.env["HTTP_AUTHORIZATION"] = user ? ActionController::HttpAuthentication::Basic.encode_credentials... | Ruby |
# Esta clase permite bajar el reporte de finanzas a PDF.
class FinanzasPdf
# Crea el contenido que tendrá el PDF de salida del módulo de Finanzas.
def self.escribir(user)
pdf = PDF::Writer.new
@ventas = Comunicacion.find(:all,:conditions => ['type = "Venta"'])
@ingresos = Comunicacion.find(:all,:conditions ... | Ruby |
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "theme/css"
sass_dir = "theme/scss"
images_dir = "images"
javascripts_dir = "js"
# You can select your preferred output style here (can be overridden via the command line):
output_style = :co... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.i
module Collada
class Triangles
attr_accessor :vertex_indices, :normal_indices, :count
... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
module Collada
class Contours
attr_accessor :vertex_indices, :normal_indices, :count
... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
module Collada
class LineStrips
attr_accessor :vertex_indices
def initial... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
module Collada
def Collada.ccw(a, b, c)
a[0] * (b[1] - c[1]) - b[0] * (a[1] - c[1]) + c[0] *... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
require 'rexml/formatters/default'
module REXML
module Formatters
# Pretty-prints an XML document. T... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
require 'sketchup.rb'
require 'rubystdlib.rb'
require 'rexml/Document'
load 'collada/id_manager.rb'
load 'co... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
require 'rubystdlib.rb'
require 'rexml/Document'
module Collada
class Mesh
attr_accessor :id
... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
module Collada
class Node
attr_accessor :name, :id, :geometries, :components, :nodes, :anima... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
module Collada
class Lines
attr_accessor :vertex_indices, :count
def init... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
module Collada
class Material
attr_reader :id
def initialize(id, color)
... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
module Collada
class Component
attr_accessor :node
def initialize(node)
... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
module Collada
def Collada.p_to_s(p)
p = p.collect { |n| if n.abs < 1e-10 then 0.0 else n end }
... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
module Collada
class AnimationPath
def AnimationPath.set_path(object)
object.se... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
module Collada
class IdManager
def initialize(initial_entries = [])
@id_hash = {}
... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
require 'collada/exporter.rb'
| Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
if not file_loaded?("rubystdlib.rb")
processor, platform, *rest = RUBY_PLATFORM.split("-")
cas... | Ruby |
# Author: Michael Burns (mburns@cs.princeton.edu)
# Copyright (c) 2009 Michael Burns
#
# This program is distributed under the terms of the
# GNU General Public License. See the COPYING file
# for details.
require 'sketchup.rb'
module SelectionFilter
def SelectionFilter.filter(type)
new_selection = Sketch... | Ruby |
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "theme/css"
sass_dir = "theme/scss"
images_dir = "images"
javascripts_dir = "js"
# You can select your preferred output style here (can be overridden via the command line):
output_style = :co... | Ruby |
class CreateUsers < ActiveRecord::Migration
def up
create_table :users do |t|
t.string :profile_id
t.string :email
t.string :refresh_token
end
add_index :users, :profile_id
end
def down
drop_table :users
end
end
| Ruby |
# Copyright (C) 2012 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Ruby |
source :gemcutter
gem 'sinatra', :require => 'sinatra/base'
gem 'thin', '~> 1.3'
gem 'pg'
gem 'sinatra-activerecord'
gem 'google-api-client', '>= 0.4.4', :require => 'google/api_client'
group :development do
gem 'rake'
gem 'sqlite3-ruby'
end
| Ruby |
require 'sinatra.rb'
# Sinatra defines #set at the top level as a way to set application configuration
set :run, false
set :env, (ENV['RACK_ENV'] ? ENV['RACK_ENV'].to_sym : :development)
require './main'
run Sinatra::Application | Ruby |
require 'sinatra/activerecord/rake'
require './main' | Ruby |
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'
class Test::Unit::TestCase
# Transactional fixtures accelerate your tests by wrapping each test method
# in a transaction that's rolled back on completion. This ensures that the
# test datab... | Ruby |
#!/usr/local/bin/ruby
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impai... | Ruby |
#!/usr/local/bin/ruby
#
# You may specify the path to the FastCGI crash log (a log of unhandled
# exceptions which forced the FastCGI instance to exit, great for debugging)
# and the number of requests to process before running garbage collection.
#
# By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.lo... | Ruby |
#!/usr/local/bin/ruby
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impai... | Ruby |
#!/usr/local/bin/ruby
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impai... | Ruby |
#!/usr/local/bin/ruby
#
# You may specify the path to the FastCGI crash log (a log of unhandled
# exceptions which forced the FastCGI instance to exit, great for debugging)
# and the number of requests to process before running garbage collection.
#
# By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.lo... | Ruby |
#!/usr/local/bin/ruby
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impai... | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/destroy'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/about'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/runner'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/runner'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/server'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/generate'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/destroy'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/plugin'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/console'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/about'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/server'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/console'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/plugin'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/spawner'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/spawner'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/inspector'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/reaper'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/reaper'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/inspector'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/benchmarker'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/request'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/profiler'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/benchmarker'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/profiler'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/request'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/generate'
| Ruby |
# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
end
| Ruby |
class Authorize < Remote
class << self
# singular resource
def collection_name
"authorize"
end
def request_ticket
format.decode(post(:request_ticket, :api_key => CONFIG[:aireo_api_key]).body).symbolize_keys
end
def request_token(ticket_key)
format.decode(post(:... | Ruby |
class Remote < ActiveResource::Base
self.site = CONFIG[:aireo_site]
cattr_accessor :token_key
def self.headers
{ 'Cookie' => "token_key=#{self.token_key};" }
end
end | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.