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 CalendarMonthsController < ApplicationController | |
caches_embedded :mini_calendar, :ttl => 60.minutes | |
def mini_calendar | |
user_id = params[:user_id] | |
@month_offset = params[:month_offset] ? params[:month_offset].to_i : 0 | |
@year = Date.today.year | |
@month = Date.today.to_time.advance(:months => @month_offset).to_date.month |
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
def search(options = {}) | |
search = false | |
blocked_domains_filter = "" | |
blocked_channels_filter = "" | |
if options[:jobseeker] | |
blocked_domains_filter = " not ( " + options[:jobseeker].blocked_domains.map{|bd| bd.domain}.join(" or ") + " )" unless options[:jobseeker].blocked_domains.empty? || self.keywords.blank? | |
blocked_channels_filter = " not ( " + options[:jobseeker].blocked_channels.map{|bd| bd.channel}.join(" or ") + " )" unless options[:jobseeker].blocked_channels.empty? || self.keywords.blank? | |
end | |
#begin | |
if !self.placemark.nil? |
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
def descerebrado | |
@sentido_comun -= @tacto + @delicadeza | |
end | |
descerebrado == pendejo | |
#True |
NewerOlder