File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
- class Foo < Rails ::Application
2
- if Rails . version . to_s . start_with? '4'
3
- config . eager_load = false
4
- config . secret_key_base = 'abc123'
5
- end
6
- end
7
-
8
- Rails . application . load_generators
9
-
10
1
require 'generators/serializer/serializer_generator'
11
2
12
3
class SerializerGeneratorTest < Rails ::Generators ::TestCase
Original file line number Diff line number Diff line change 11
11
12
12
class Foo < Rails ::Application
13
13
if Rails . version . to_s . start_with? '4'
14
+ config . eager_load = false
15
+ config . secret_key_base = 'abc123'
14
16
config . action_controller . perform_caching = true
15
17
config . active_support . test_order = :random
16
18
ActionController ::Base . cache_store = :memory_store
17
19
end
18
20
end
21
+ Foo . load_generators
19
22
20
23
require "active_model_serializers"
21
24
You can’t perform that action at this time.
0 commit comments