2013-04-21から1日間の記事一覧
急に発症して大分悩んだわけですが、どうやらフィクスチャの teardown 処理のあたりに変化があった模様。 以下、Rails 4 のコードから抜粋。 module ActiveRecord module TestFixtures extend ActiveSupport::Concern def before_setup setup_fixtures super…
Ruby 2.0.0p0 Rails 4.0.0.beta1 ActiveSupport::Inflector.inflections(:en) do |inflect| inflect.acronym 'OAuth' end ネームスペースがつくと期待通りの変換をしてくれない模様。 'OAuth'.underscore # => 'oauth' 'oauth'.camelize # => 'OAuth' 'Auth:…