diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-03-05 17:26:04 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-03-05 17:26:04 -0300 |
commit | ddf4c953ae8d10489e0bfd6008bd76395f6e1267 (patch) | |
tree | bc35ceca938f59287a14d2d610e65235f62b0129 /actionview/test/lib/controller | |
parent | 1d02fb6e376c6f7224a5534d574e63dd9708cdd2 (diff) | |
download | rails-ddf4c953ae8d10489e0bfd6008bd76395f6e1267.tar.gz rails-ddf4c953ae8d10489e0bfd6008bd76395f6e1267.tar.bz2 rails-ddf4c953ae8d10489e0bfd6008bd76395f6e1267.zip |
Revert "Merge pull request #22764 from stevenspiel/titleize_model_name_for_default_submit_button_value"
This reverts commit 4158974c60d817c9bc1e2aecb342161295f2ac0d, reversing
changes made to 3d590add45b7ff1de972d99b076cb504d5208935.
Reason: This break i18n in some languages. See
https://github.com/rails/rails/issues/791#issuecomment-192724640
Diffstat (limited to 'actionview/test/lib/controller')
-rw-r--r-- | actionview/test/lib/controller/fake_models.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/actionview/test/lib/controller/fake_models.rb b/actionview/test/lib/controller/fake_models.rb index a122fe17c9..65c68fc34a 100644 --- a/actionview/test/lib/controller/fake_models.rb +++ b/actionview/test/lib/controller/fake_models.rb @@ -31,27 +31,6 @@ end class GoodCustomer < Customer end -class TicketType < Struct.new(:name) - extend ActiveModel::Naming - include ActiveModel::Conversion - extend ActiveModel::Translation - - def initialize(*args) - super - @persisted = false - end - - def persisted=(boolean) - @persisted = boolean - end - - def persisted? - @persisted - end - - attr_accessor :name -end - class Post < Struct.new(:title, :author_name, :body, :secret, :persisted, :written_on, :cost) extend ActiveModel::Naming include ActiveModel::Conversion |