File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,7 @@ module Rails
24
24
autoload :InfoController , 'rails/info_controller'
25
25
26
26
class << self
27
- def application
28
- @application ||= nil
29
- end
30
-
31
- def application = ( application )
32
- @application = application
33
- end
27
+ attr_accessor :application , :cache , :logger
34
28
35
29
# The Configuration instance used to configure the Rails environment
36
30
def configuration
@@ -64,14 +58,6 @@ def initialized?
64
58
application . initialized?
65
59
end
66
60
67
- def logger
68
- @logger ||= nil
69
- end
70
-
71
- def logger = ( logger )
72
- @logger = logger
73
- end
74
-
75
61
def backtrace_cleaner
76
62
@backtrace_cleaner ||= begin
77
63
# Relies on Active Support, so we have to lazy load to postpone definition until AS has been loaded
@@ -95,14 +81,6 @@ def env=(environment)
95
81
@_env = ActiveSupport ::StringInquirer . new ( environment )
96
82
end
97
83
98
- def cache
99
- @cache ||= nil
100
- end
101
-
102
- def cache = ( cache )
103
- @cache = cache
104
- end
105
-
106
84
# Returns all rails groups for loading based on:
107
85
#
108
86
# * The Rails environment;
You can’t perform that action at this time.
0 commit comments