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
a = Proc.new{ |*args| puts *args } | |
def foo(*args) | |
if block_given? | |
yield *args | |
end | |
end | |
foo(1, 2, &a) |
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
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 |
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 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 | |