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
h1 { | |
color: #2887e5; } | |
#footer { | |
font-family: Arial; | |
font-color: #2887e5; } |
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
!font_family= Arial | |
!blue= #2887E5 | |
h1 | |
color= !blue | |
#footer | |
:font | |
:family= !font_family | |
:color= !blue |
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
NIL_HASH = { | |
:datetime_start=>nil, | |
:datetime_end=>nil, | |
:run_start_time=>nil, | |
:run_end_time=>nil, | |
:result_comment=>nil, | |
:inprogress_state=>nil, | |
:inprogress_testcase=>nil, | |
:inprogress_lasterror=>nil | |
} |
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 ExampleController < ActiveRecord::Base | |
def index | |
end | |
def update | |
ExampleModle.create(:name => params[:name], :address => params[:address]) | |
redirect_to :action => 'index' | |
end | |
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
delegate :author, :authored_date, :to => :@commit |
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 author | |
@commit.author | |
end | |
def committed_date | |
@commit.authored_date | |
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
def method_missing(method, *params) | |
super unless @commit.respond_to?(method) | |
@commit.send(method, *params) | |
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
def method_missing(method, *parameters) | |
raise NoMethodError unless @repo.respond_to?(method) | |
@repo.send(method, *parameters) | |
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
if ((start_day.to_i => book.start_boooking.day && start_day.to_i < book.end_booking.day) || (end_day.to_i > book.start_booking.day && end_day.to_i <= book.end_booking.day) || (start_day.to_i <= book.start_booking.day && end_day.to_i => book.end_booking.day)) && ((start_month.to_i => book.start_boooking.month && start_month.to_i < book.end_booking.month) || (end_month.to_i > book.start_booking.month && end_month.to_i <= book.end_booking.month) || (start_month.to_i <= book.start_booking.month && end_month.to_i => book.end_booking.month)) && ((start_year.to_i => book.start_boooking.year && start_year.to_i < book.end_booking.year) || (end_year.to_i > book.start_booking.year && end_year.to_i <= book.end_booking.year) || (start_year.to_i <= book.start_booking.year && end_year.to_i => book.end_booking.year)) |
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 CreditCardInfo < ActiveRecord::Base | |
#modely stuff | |
end |