Skip to content

Instantly share code, notes, and snippets.

View sarcilav's full-sized avatar

Sebastian Arcila Valenzuela sarcilav

View GitHub Profile
a = Proc.new{ |*args| puts *args }
def foo(*args)
if block_given?
yield *args
end
end
foo(1, 2, &a)
every 1.day, :at => '2:00am' do
runner "Message.reset_featured", :environment => :production
end
every 1.day, :at => '2:00am' do
runner "Message.reset_featured", :environment => :staging
end
every 1.minutes do
runner "Message.reset_featured" , :environment => :Staging, :Output => {:error => '/tmp/error.log', :Standard => '/tmp/cron.log'}
end
class WorkshopsController < BaseController
include Viewable
load_and_authorize_resource :except => :index
# before_filter :load_header, :only => [:directorio, :laboratorios]
uses_tiny_mce(:only => [:edit, :update, :create, :new]) do
AppConfig.default_mce_options
end