aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-03-05 17:26:04 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-03-05 17:26:04 -0300
commitddf4c953ae8d10489e0bfd6008bd76395f6e1267 (patch)
treebc35ceca938f59287a14d2d610e65235f62b0129 /actionview/test/lib
parent1d02fb6e376c6f7224a5534d574e63dd9708cdd2 (diff)
downloadrails-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')
-rw-r--r--actionview/test/lib/controller/fake_models.rb21
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