lib/appengine/railtie.rb in appengine-0.4.6 vs lib/appengine/railtie.rb in appengine-0.5.0
- old
+ new
@@ -1,6 +1,8 @@
-# Copyright 2016 Google Inc. All rights reserved.
+# frozen_string_literal: true
+
+# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@@ -9,15 +11,13 @@
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-;
module AppEngine
-
##
# # AppEngine Rails integration
#
# A Railtie providing Rails integration with the Google App Engine runtime
# environment.
@@ -72,18 +72,13 @@
#
# Enables the Stackdriver Debugger. Default is true. Set it to false to
# disable debugging.
#
class Railtie < ::Rails::Railtie
-
config.appengine = ::ActiveSupport::OrderedOptions.new
config.appengine.define_tasks = true
rake_tasks do |app|
- if app.config.appengine.define_tasks
- require "appengine/tasks"
- end
+ require "appengine/tasks" if app.config.appengine.define_tasks
end
-
end
-
end