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
module App | |
module UseCases | |
module Users | |
module AssignBadge | |
# REQUIRED CONTEXT: | |
# - id | |
# - badge_id | |
class Base < UseCase::Base |
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
# USE CASE: | |
# As a user I want to finalize an Invoice and an email should be delivered to the customer. | |
class FinalizeInvoiceUseCase < UseCase::Base | |
depends FindInvoice, ValidateToFinalize, FinalizeInvoice, SendEmail | |
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
|- app | |
| |- use_cases | |
| | |- users | |
| | | |- index | |
| | | | |-- base.rb | |
| | | | |-- parse_params.rb | |
| | | |- create | |
| | | | |-- base.rb | |
| | | | |-- parse_params.rb | |
| | | | |-- persist.rb |
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
Remove WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true | |
Open ~/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpresponse.rb | |
goto line 205 and change it to: if chunked? || @header['content-length'] || @status == 304 || @status == 204 | |
Change the ruby version in the path to your version | |
bye bye warning |
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 Team | |
attr_accessor :name, :country | |
private_class_method :new | |
end | |
class Barcelona < Team | |
def initialize(name, country) | |
@name = name | |
@country = country | |
end |
NewerOlder