Commit Graph

11 Commits

Author SHA1 Message Date
Dillon Welch cac943e891 Add frozen_string_literal in all .rb files
I noticed these files all had strings such as "", "  ", "_" that were
allocated each time some common methods were called, over 1000x on a
page in my app. This comment freezes all of these strings such that
they're only allocated once, saving many KB of memory allocation.
2017-11-27 17:06:18 -08:00
Rob Biedenharn ee2d770442 Adjust MockController & test support for Rails 5.1
* MockController#polymorphic_mappings
* Database-specific types (e.g., :text) moved from ActiveModel to
  ActiveRecord so the type_for_attribute helper needed adjustment.
2017-04-28 14:06:30 -04:00
Rafael Mendonça França d7a89a730b Update the MockController code to work with Rails 4 2012-12-13 15:16:12 -03:00
Rafael Mendonça França 2296d25ce3 Remove more warnings 2011-12-18 16:42:56 -02:00
Vasiliy Ermolovich b2230076ed fix warnings in tests 2011-12-17 13:57:43 +03:00
Rafael Mendonça França d529379c72 Add support to Rails 3.1.0. Closes #252 2011-06-25 16:42:17 -03:00
José Valim ab60a080b3 Split boolean inputs into their own class so we can change label input order. 2010-07-06 11:24:12 +02:00
José Valim 1ef232cf6d Numberic type inputs now have type=number for HTML5. 2010-06-01 23:40:12 +02:00
José Valim d818aed088 Tests running on Rails master. 2010-04-22 14:33:23 +02:00
José Valim 9add5b8c10 Make :create and :update map to :new and :edit. 2009-12-11 18:32:57 -02:00
Carlos Antonio da Silva b65d076183 Refactoring tests and splitting files. 2009-12-08 11:48:31 -02:00