Class: ExampleAppPlainTextRichTextEdgeCasesTest
- Inherits:
-
ActiveSupport::TestCase
- Object
- ActiveSupport::TestCase
- ExampleAppPlainTextRichTextEdgeCasesTest
- Defined in:
- lib/installer_templates/example_app_tests/test/models/example_app_plain_text_rich_text_edge_cases_test.rb
Instance Method Summary collapse
Instance Method Details
#with_temporary_inline_forms_attribute_list(klass, temporary_list) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/installer_templates/example_app_tests/test/models/example_app_plain_text_rich_text_edge_cases_test.rb', line 6 def with_temporary_inline_forms_attribute_list(klass, temporary_list) original = klass.instance_method(:inline_forms_attribute_list) klass.define_method(:inline_forms_attribute_list) { temporary_list } yield ensure klass.define_method(:inline_forms_attribute_list, original) end |