I hereby claim:
- I am lesce on github.
- I am andreilescenco (https://keybase.io/andreilescenco) on keybase.
- I have a public key ASBF12xxZuAoZFMfj6LRGhcXPCdxoqJzFt73Q0iJgwVVoAo
To claim this, I am signing this object:
| {"utf8"=>"✓", | |
| "authenticity_token"=>"UF/7q+PioI4CZBat9EzFGgEUaStPYZhr+cXClc1KAKU=", | |
| "id"=>"1", | |
| "courses"=>{"id"=>"1"}, | |
| "grade"=>"", | |
| "date"=>{"year"=>"2012", | |
| "month"=>"2", | |
| "day"=>"13"}, | |
| "commit"=>"Adauga"} |
| class Ability | |
| include CanCan::Ability | |
| def initialize(user) | |
| user ||= User.new | |
| if user.is_god? | |
| can :manage, :all | |
| elsif user.is_king? | |
| can :manage , User |
| has_one :home_address, :class_name => 'UserAddress' , :conditions => { :is_home_address => true } | |
| has_one :work_address, :class_name => 'UserAddress' , :conditions => { :is_work_address => true } |
| <%= debug @user.user_addresses %> | |
| <%= f.fields_for @user.user_addresses do |ua| %> | |
| <%= debug ua.object.is_home_address %> | |
| <%= debug ua.object.is_work_address %> | |
| and in the browser I get this | |
| --- | |
| - !ruby/object:UserAddress | |
| attributes: |
| map <Leader>rt :!ctags --extra=+f --exclude=.git --exclude=log -R * `rvm gemdir`/gems/*<CR><CR> | |
| set shcf=-ic |
| ctags --extra=+f --exclude=.git --exclude=log -R * \`rvm gemdir\`/gems/* |
| select recruits.first_name as first_name , recruits.last_name as last_name, recruits.email as email, | |
| home_address.street as home_address_street, | |
| home_address.street2 as home_address_street2, | |
| home_address.zip as home_address_zip, | |
| home_address.city as home_address_city, | |
| home_address.state as home_address_state, | |
| home_address.country as home_address_country, | |
| home_address.phone as home_address_phone, | |
| home_address.fax as home_address_fax, | |
| work_address.street as work_address_street, |
| def test | |
| [0,1,2].each do |n| | |
| x = "Da" if n == 2 | |
| end | |
| x = "Nu" if x.nil? | |
| return x | |
| end |
I hereby claim:
To claim this, I am signing this object:
| PREIMAGES map[] | |
| { | |
| "root": "d7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544", | |
| "accounts": { | |
| "000d836201318ec6899a67540690382780743280": { | |
| "balance": "200000000000000000000", | |
| "nonce": 0, | |
| "root": "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | |
| "codeHash": "c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", | |
| "code": "", |