This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
gem 'pg' | |
group :development do | |
gem 'ruby-debug' | |
end | |
gem 'rake', '~> 0.8.7' | |
gem 'devise' | |
gem 'oa-oauth', :require => 'omniauth/oauth' | |
gem 'omniauth' | |
gem 'haml' | |
gem 'dynamic_form' |
package Enums; | |
public enum TestEnum { | |
WHITE("WHITE", 0), | |
BLACK("BLACK", 1), | |
RED("RED", 2), | |
YELLOW("YELLOW", 3), | |
BLUE("BLUE", 4); |
# no config | |
Time.now is localtime | |
1.second.from_now is UTC | |
Timestamp stored in UTC | |
AR not translated | |
Time.now: Fri Aug 24 10:22:25 +0930 2012 | |
1.second.from_now 2012-08-24 00:52:26 UTC |
def paginate(scope, default_per_page = 20) | |
collection = scope.page(params[:page]).per((params[:per_page] || default_per_page).to_i) | |
current, total, per_page = collection.current_page, collection.num_pages, collection.limit_value | |
return [{ | |
pagination: { | |
current: current, | |
previous: (current > 1 ? (current - 1) : nil), | |
next: (current == total ? nil : (current + 1)), |
So, you've merged the master branch with itself, and you ended up with a merge commit nobody wanted.
John and Pete are working together on a repo.
$ git log --graph --pretty=oneline --abbrev-commit # an alias I have under 'git lol', but 'gitk' does just fine
* 812492b (master, origin/master, origin/HEAD) Add stuff
# Syntax sugar | |
class ArrayValidator < EnumValidator | |
end |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
gem 'devise', '3.2.4' | |
gem 'simple_token_authentication', '1.5.0' |