Module: Rails::Configuration::Deprecated

Included in:
Application::Configuration
Defined in:
lib/rails/configuration.rb

Instance Method Summary collapse

Instance Method Details

#controller_pathsObject



137
138
139
140
141
# File 'lib/rails/configuration.rb', line 137

def controller_paths
  ActiveSupport::Deprecation.warn "config.controller_paths is deprecated, " <<
    "please do paths.app.controllers instead", caller
  paths.app.controllers.to_a.uniq
end

#controller_paths=(value) ⇒ Object



131
132
133
134
135
# File 'lib/rails/configuration.rb', line 131

def controller_paths=(value)
  ActiveSupport::Deprecation.warn "config.controller_paths= is deprecated, " <<
    "please do paths.app.controllers= instead", caller
  paths.app.controllers = value
end


149
150
151
152
153
# File 'lib/rails/configuration.rb', line 149

def cookie_secret
  ActiveSupport::Deprecation.warn "config.cookie_secret is deprecated, " <<
    "please use config.secret_token instead", caller
  self.secret_token
end


143
144
145
146
147
# File 'lib/rails/configuration.rb', line 143

def cookie_secret=(value)
  ActiveSupport::Deprecation.warn "config.cookie_secret= is deprecated, " <<
    "please use config.secret_token= instead", caller
  self.secret_token = value
end

#database_configuration_fileObject



113
114
115
116
117
# File 'lib/rails/configuration.rb', line 113

def database_configuration_file
  ActiveSupport::Deprecation.warn "config.database_configuration_file is deprecated, " <<
    "please do paths.config.database instead", caller
  paths.config.database.to_a.first
end

#database_configuration_file=(value) ⇒ Object



107
108
109
110
111
# File 'lib/rails/configuration.rb', line 107

def database_configuration_file=(value)
  ActiveSupport::Deprecation.warn "config.database_configuration_file= is deprecated, " <<
    "please do paths.config.database= instead", caller
  paths.config.database = value
end

#frameworks(*args) ⇒ Object Also known as: frameworks=



76
77
78
79
80
# File 'lib/rails/configuration.rb', line 76

def frameworks(*args)
  raise "config.frameworks in no longer supported. See the generated " \
        "config/boot.rb for steps on how to limit the frameworks that " \
        "will be loaded"
end

#log_pathObject



125
126
127
128
129
# File 'lib/rails/configuration.rb', line 125

def log_path
  ActiveSupport::Deprecation.warn "config.log_path is deprecated, " <<
    "please do paths.log instead", caller
  paths.config.log.to_a.first
end

#log_path=(value) ⇒ Object



119
120
121
122
123
# File 'lib/rails/configuration.rb', line 119

def log_path=(value)
  ActiveSupport::Deprecation.warn "config.log_path= is deprecated, " <<
    "please do paths.log= instead", caller
  paths.config.log = value
end

#routes_configuration_fileObject



101
102
103
104
105
# File 'lib/rails/configuration.rb', line 101

def routes_configuration_file
  ActiveSupport::Deprecation.warn "config.routes_configuration_file is deprecated, " <<
    "please do paths.config.routes instead", caller
  paths.config.routes.to_a.first
end

#routes_configuration_file=(value) ⇒ Object



95
96
97
98
99
# File 'lib/rails/configuration.rb', line 95

def routes_configuration_file=(value)
  ActiveSupport::Deprecation.warn "config.routes_configuration_file= is deprecated, " <<
    "please do paths.config.routes= instead", caller
  paths.config.routes = value
end

#view_pathObject



89
90
91
92
93
# File 'lib/rails/configuration.rb', line 89

def view_path
  ActiveSupport::Deprecation.warn "config.view_path is deprecated, " <<
    "please do paths.app.views instead", caller
  paths.app.views.to_a.first
end

#view_path=(value) ⇒ Object



83
84
85
86
87
# File 'lib/rails/configuration.rb', line 83

def view_path=(value)
  ActiveSupport::Deprecation.warn "config.view_path= is deprecated, " <<
    "please do paths.app.views= instead", caller
  paths.app.views = value
end