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 Conversation | |
has_many :messages | |
def << m | |
self.messages << m | |
end | |
end | |
class Message | |
belongs_to :conversation |
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 XUser | |
include Mongoid::Document | |
field :name | |
has_one :x_referal, :class_name => XReferal, :inverse_of => :referal_user | |
has_many :referal_urls, :class_name => XReferal, :inverse_of => :x_user | |
end | |
class XReferal | |
include Mongoid::Document | |
include Mongoid::Timestamps |
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
### Basics (3 main branches + Releases) | |
1. Master Branch | |
- This is the cleanest code that is ready to deploy at any time. | |
- Commits are tagged with version numbers. | |
- It lives forever. | |
2. Development Branch | |
- No development will happen here, only merges from Feature branches and Release branches. | |
- It is never merged into any other branch. | |
- Nobody will commit to this branch. Depending on the project's structure and team culture, selected individuals will merge pull requests into the Development branch. | |
- It never dies. |
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
.bot-left { | |
position: relative; | |
} | |
.bot-left:before, .bot-left:after { | |
content: ""; | |
position: absolute; | |
bottom: 0px; | |
left: 0px; | |
} | |
.bot-left:before { |
NewerOlder