Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

eagle.anton (at gmail)'s latest activity

Wednesday, February 09 2011
6367 Timezone aware attributes fail with nil assignments was updated in Ruby on Rails
Monday, February 07 2011
6367 Timezone aware attributes fail with nil assignments was updated in Ruby on Rails
Monday, December 27 2010
6220 scope firings up on association was updated in Ruby on Rails
  • eagle.anton (at gmail)
    eagle.anton (at gmail) commented at 7:50 AM

    Problem was solved by AR#unscoped with block:

    def self.some_action
      u = User.find(x)
      unscoped { u.posts }
    end
    

    Ticket may be closed. Thank you.

Friday, December 24 2010
6220 scope firings up on association was updated in Ruby on Rails
  • eagle.anton (at gmail)
    • Tag changed from scope association to association, rails3, scope
    by eagle.anton (at gmail) at 2:41 PM
  • eagle.anton (at gmail)
    eagle.anton (at gmail) created the ticket at 2:27 PM

    For example:

    class Post < ActiveRecord
      belongs_to :user
    
      scope :published, where(:published => true)
    
      def self.some_action
        u = User.find(x)
        u.pos...
Thursday, July 29 2010
267 form_for for singular resource will products plural invokes was updated in Ruby on Rails
  • eagle.anton (at gmail)
    • Tag changed from actionpack, helper to rails 3 rc, actionpack, helper
    • Importance changed from to
    by eagle.anton (at gmail) at 8:19 AM

    Confirm bug in Rails 3 RC

Friday, July 23 2010
5185 unchanged attribute is changed [ActiveModel] was updated in Ruby on Rails
  • eagle.anton (at gmail)
    • Tag set to rails3 active_model dirty
    by eagle.anton (at gmail) at 2:25 PM
  • eagle.anton (at gmail)
    eagle.anton (at gmail) created the ticket at 1:37 PM

    ActiveModel::Dirty has the example:

    # Assigning the same value leaves the attribute unchanged:
    #   person.name = 'Bill'
    #   person.name_changed?  # => false
    # ...
Wednesday, July 21 2010
5135 Slash gets escaped when globbing a route was updated in Ruby on Rails
  • eagle.anton (at gmail)
    • Tag changed from rails 3, tests actionpack, glob, router to rails 3, slash escape, tests actionpack, glob, router
    by eagle.anton (at gmail) at 2:23 PM

    Confirm this but not only for globbing.

    For example this route:

    match "/:path" => "pages#show", :constraints => {:path => /.+(\/.+)*/ }
    
    assert_routing '/direc...
Tuesday, April 06 2010
1605 [PATCH] Create schema during 'rake db:create' from schema_search_path if it d... was updated in Ruby on Rails
  • eagle.anton (at gmail)
    eagle.anton (at gmail) commented at 12:37 PM

    Ok. Let's talk about workflow with postgres.

    There are my steps:

    sudo -u postgres psql
    CREATE ROLE user_name with createdb login password 'pass';
    
    There is i d...