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 Stream | |
| include Mongoid::Document | |
| include Mongoid::Timestamps | |
| field :original_photo_id | |
| field :locked, type: Boolean, default: false | |
| field :popular, type: Boolean, default: false | |
| field :popular_order | |
| field :photos_count | |
| field :title |
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 Photo | |
| include Mongoid::Document | |
| include Mongoid::Timestamps | |
| referenced_in :stream | |
| set_callback(:destroy, :after) do |document| | |
| document.update_stream | |
| end | |
| def update_stream |
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
| #!/bin/bash | |
| # | |
| # DESCRIPTION: | |
| # | |
| # Set the bash prompt according to: | |
| # * the branch/status of the current git/svn repository | |
| # * the return value of the previous command | |
| # * the current rvm ruby version and gemset (or plain ruby, check parse_ruby_version function) | |
| # | |
| # USAGE: |
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
| #!/bin/bash | |
| # | |
| # DESCRIPTION: | |
| # | |
| # Set the bash prompt according to: | |
| # * the ruby version | |
| # * the branch/status of the current git repository | |
| # * the branch of the current subversion repository | |
| # * the return value of the previous command | |
| # |
NewerOlder