notify_user 0.0.16 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/notify_user/base_notification.rb +7 -1
- data/lib/notify_user/version.rb +1 -1
- data/spec/dummy/rails-4.0.4/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/{rails-4.0.2/db/migrate/20140428015529_create_users.rb → rails-4.0.4/db/migrate/20140624075850_create_users.rb} +0 -0
- data/spec/dummy/{rails-4.0.2/db/migrate/20140428015531189189694000_create_notify_user_notifications.rb → rails-4.0.4/db/migrate/20140624075852587587217000_create_notify_user_notifications.rb} +0 -0
- data/spec/dummy/{rails-4.0.2/db/migrate/20140428015531190190743000_create_notify_user_unsubscribes.rb → rails-4.0.4/db/migrate/20140624075852588588765000_create_notify_user_unsubscribes.rb} +0 -0
- data/spec/dummy/{rails-4.0.2/db/migrate/20140428015531191191953000_create_notify_user_user_hashes.rb → rails-4.0.4/db/migrate/20140624075852590590153000_create_notify_user_user_hashes.rb} +0 -0
- data/spec/dummy/rails-4.0.4/db/schema.rb +1 -1
- data/spec/dummy/rails-4.0.4/log/test.log +8421 -19580
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{461686bcf3d7c88e0499f60b83be1fbd → 80e5f8379c6b79f7685b1a2124c2c032} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{8347cdde4e97e62f293aab2e5e6fcc2a → 8b79deab756579c0e92b62a86f6a5fef} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/models/notify_user/notification_spec.rb +7 -0
- metadata +52 -190
- data/spec/dummy/rails-4.0.2/Gemfile +0 -45
- data/spec/dummy/rails-4.0.2/README.rdoc +0 -28
- data/spec/dummy/rails-4.0.2/Rakefile +0 -6
- data/spec/dummy/rails-4.0.2/app/assets/javascripts/application.js +0 -16
- data/spec/dummy/rails-4.0.2/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/rails-4.0.2/app/controllers/application_controller.rb +0 -5
- data/spec/dummy/rails-4.0.2/app/controllers/notify_user/notifications_controller.rb +0 -9
- data/spec/dummy/rails-4.0.2/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/rails-4.0.2/app/models/user.rb +0 -2
- data/spec/dummy/rails-4.0.2/app/notifications/new_post_notification.rb +0 -11
- data/spec/dummy/rails-4.0.2/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/rails-4.0.2/app/views/notify_user/layouts/action_mailer.html.erb +0 -39
- data/spec/dummy/rails-4.0.2/app/views/notify_user/new_post_notification/action_mailer/notification.html.erb +0 -1
- data/spec/dummy/rails-4.0.2/app/views/notify_user/new_post_notification/mobile_sdk/notification.html.erb +0 -1
- data/spec/dummy/rails-4.0.2/bin/bundle +0 -3
- data/spec/dummy/rails-4.0.2/bin/rails +0 -4
- data/spec/dummy/rails-4.0.2/bin/rake +0 -4
- data/spec/dummy/rails-4.0.2/config/application.rb +0 -23
- data/spec/dummy/rails-4.0.2/config/boot.rb +0 -4
- data/spec/dummy/rails-4.0.2/config/database.yml +0 -54
- data/spec/dummy/rails-4.0.2/config/database2.yml +0 -57
- data/spec/dummy/rails-4.0.2/config/environment.rb +0 -5
- data/spec/dummy/rails-4.0.2/config/environments/development.rb +0 -29
- data/spec/dummy/rails-4.0.2/config/environments/production.rb +0 -80
- data/spec/dummy/rails-4.0.2/config/environments/test.rb +0 -36
- data/spec/dummy/rails-4.0.2/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/rails-4.0.2/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/rails-4.0.2/config/initializers/inflections.rb +0 -16
- data/spec/dummy/rails-4.0.2/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/rails-4.0.2/config/initializers/notify_user.rb +0 -14
- data/spec/dummy/rails-4.0.2/config/initializers/secret_token.rb +0 -12
- data/spec/dummy/rails-4.0.2/config/initializers/session_store.rb +0 -3
- data/spec/dummy/rails-4.0.2/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/rails-4.0.2/config/locales/en.yml +0 -23
- data/spec/dummy/rails-4.0.2/config/routes.rb +0 -56
- data/spec/dummy/rails-4.0.2/config.ru +0 -4
- data/spec/dummy/rails-4.0.2/db/schema.rb +0 -53
- data/spec/dummy/rails-4.0.2/db/seeds.rb +0 -7
- data/spec/dummy/rails-4.0.2/log/test.log +0 -3146
- data/spec/dummy/rails-4.0.2/public/404.html +0 -58
- data/spec/dummy/rails-4.0.2/public/422.html +0 -58
- data/spec/dummy/rails-4.0.2/public/500.html +0 -57
- data/spec/dummy/rails-4.0.2/public/favicon.ico +0 -0
- data/spec/dummy/rails-4.0.2/public/robots.txt +0 -5
- data/spec/dummy/rails-4.0.2/test/fixtures/users.yml +0 -7
- data/spec/dummy/rails-4.0.2/test/models/user_test.rb +0 -7
- data/spec/dummy/rails-4.0.2/test/test_helper.rb +0 -15
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/13195a56ea8581e42f709ea01ea4604f +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/148f39f7dc2ea6cb194598111dbd4598 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/1d6bc1877ba2bbb89f393e10e8303d39 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/311d2b645a860b78f79ff156f12092ce +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/39651f0f2ac78423732234ebf092c632 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/5c85b1b5ac27b699c5f800c4e7ec82fb +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/68752c7ddc300bee3e9823db8befc306 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/6961013077b8573ed19d1e33abb8ebc5 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/7a316b3629b980c6d3a28924cb5fbbd8 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/8698d6fed0ef2f173a377160752b959f +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/8bab520aad78da438df1c428288cf229 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/fa138a16887e031c0ae1b4caccfb4c05 +0 -0
- data/spec/dummy/rails-4.0.4/db/migrate/20140519075749_create_users.rb +0 -9
- data/spec/dummy/rails-4.0.4/db/migrate/20140519075751424424898000_create_notify_user_notifications.rb +0 -13
- data/spec/dummy/rails-4.0.4/db/migrate/20140519075751426426728000_create_notify_user_unsubscribes.rb +0 -10
- data/spec/dummy/rails-4.0.4/db/migrate/20140519075751428428230000_create_notify_user_user_hashes.rb +0 -12
@@ -1,45 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
4
|
-
gem 'rails', '4.0.2'
|
5
|
-
|
6
|
-
# Use postgresql as the database for Active Record
|
7
|
-
gem 'pg'
|
8
|
-
|
9
|
-
# Use SCSS for stylesheets
|
10
|
-
gem 'sass-rails', '~> 4.0.0'
|
11
|
-
|
12
|
-
# Use Uglifier as compressor for JavaScript assets
|
13
|
-
gem 'uglifier', '>= 1.3.0'
|
14
|
-
|
15
|
-
# Use CoffeeScript for .js.coffee assets and views
|
16
|
-
gem 'coffee-rails', '~> 4.0.0'
|
17
|
-
|
18
|
-
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
19
|
-
# gem 'therubyracer', platforms: :ruby
|
20
|
-
|
21
|
-
# Use jquery as the JavaScript library
|
22
|
-
gem 'jquery-rails'
|
23
|
-
|
24
|
-
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
25
|
-
gem 'turbolinks'
|
26
|
-
|
27
|
-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
28
|
-
gem 'jbuilder', '~> 1.2'
|
29
|
-
|
30
|
-
group :doc do
|
31
|
-
# bundle exec rake doc:rails generates the API under doc/api.
|
32
|
-
gem 'sdoc', require: false
|
33
|
-
end
|
34
|
-
|
35
|
-
# Use ActiveModel has_secure_password
|
36
|
-
# gem 'bcrypt-ruby', '~> 3.1.2'
|
37
|
-
|
38
|
-
# Use unicorn as the app server
|
39
|
-
# gem 'unicorn'
|
40
|
-
|
41
|
-
# Use Capistrano for deployment
|
42
|
-
# gem 'capistrano', group: :development
|
43
|
-
|
44
|
-
# Use debugger
|
45
|
-
# gem 'debugger', group: [:development, :test]
|
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
@@ -1,16 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require jquery
|
14
|
-
//= require jquery_ujs
|
15
|
-
//= require turbolinks
|
16
|
-
//= require_tree .
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require_tree .
|
13
|
-
*/
|
@@ -1,9 +0,0 @@
|
|
1
|
-
class NotifyUser::NotificationsController < NotifyUser::BaseNotificationsController
|
2
|
-
def redirect_logic(notification)
|
3
|
-
render :text => "set redirect logic in notify_user/notifications_controller.rb"
|
4
|
-
# notification redirect logic goes here
|
5
|
-
# class_name = notification.params[:type].capitalize.constantize
|
6
|
-
# object = class_name.find(@notification.params[:id])
|
7
|
-
# redirect_to property_url(object)
|
8
|
-
end
|
9
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
class NewPostNotification < NotifyUser::BaseNotification
|
2
|
-
|
3
|
-
channel :action_mailer,
|
4
|
-
subject: "Rails402: You have a new Newpostnotification notification.",
|
5
|
-
aggregate: {
|
6
|
-
subject: "Rails402: You have new Newpostnotification notifications."
|
7
|
-
}
|
8
|
-
|
9
|
-
@@description = "please override this type description"
|
10
|
-
@@aggregate_per = 10.minutes
|
11
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Rails402</title>
|
5
|
-
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
6
|
-
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
@@ -1,39 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
5
|
-
<title></title>
|
6
|
-
</head>
|
7
|
-
|
8
|
-
<body marginheight="0" topmargin="0" marginwidth="0" leftmargin="0" style="margin: 0px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;">
|
9
|
-
<div style="width: 100%; height: 70px; margin: 0; padding: 0;">
|
10
|
-
<div style="width: 600px; margin: 0 auto; padding: 15px 0;">
|
11
|
-
Logo
|
12
|
-
</div>
|
13
|
-
</div>
|
14
|
-
<div style="width: 100%; background-color: #fff; margin: 0; padding: 0;">
|
15
|
-
<div style="width: 500px; margin: 0 auto; padding: 40px 0; ">
|
16
|
-
<%= yield %>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
<div style="width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
20
|
-
<div style="width: 600px; margin: 0 auto; padding: 0;">
|
21
|
-
<% if is_unsubscribeable? @notification %>
|
22
|
-
<p style="text-align: center;">
|
23
|
-
<%= unsubscribe_link(@notification, "Unsubscribe") %>
|
24
|
-
</p>
|
25
|
-
<%
|
26
|
-
end %>
|
27
|
-
<p style="text-align: center;">
|
28
|
-
This is the default generated layout. A privacy declaration could go here.
|
29
|
-
</p>
|
30
|
-
<p style="text-align: center; margin-bottom: 0px;">
|
31
|
-
© MyCompany Pty Ltd
|
32
|
-
</p>
|
33
|
-
<p style="text-align: center; margin-top: 0px; padding-top: 0px;">
|
34
|
-
ABN 123 456 789
|
35
|
-
</p>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
</body>
|
39
|
-
</html>
|
@@ -1 +0,0 @@
|
|
1
|
-
New Post Notification happened.
|
@@ -1 +0,0 @@
|
|
1
|
-
New Post Notification happened with <%= params.as_json %>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
# Require the gems listed in Gemfile, including any gems
|
6
|
-
# you've limited to :test, :development, or :production.
|
7
|
-
Bundler.require(:default, Rails.env)
|
8
|
-
|
9
|
-
module Rails402
|
10
|
-
class Application < Rails::Application
|
11
|
-
# Settings in config/environments/* take precedence over those specified here.
|
12
|
-
# Application configuration should go into files in config/initializers
|
13
|
-
# -- all .rb files in that directory are automatically loaded.
|
14
|
-
|
15
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
16
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
17
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
18
|
-
|
19
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
20
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
21
|
-
# config.i18n.default_locale = :de
|
22
|
-
end
|
23
|
-
end
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# PostgreSQL. Versions 8.2 and up are supported.
|
2
|
-
#
|
3
|
-
# Install the pg driver:
|
4
|
-
# gem install pg
|
5
|
-
# On OS X with Homebrew:
|
6
|
-
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
|
7
|
-
# On OS X with MacPorts:
|
8
|
-
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
|
9
|
-
# On Windows:
|
10
|
-
# gem install pg
|
11
|
-
# Choose the win32 build.
|
12
|
-
# Install PostgreSQL and put its /bin directory on your path.
|
13
|
-
#
|
14
|
-
# Configure Using Gemfile
|
15
|
-
# gem 'pg'
|
16
|
-
#
|
17
|
-
development:
|
18
|
-
adapter: postgresql
|
19
|
-
encoding: unicode
|
20
|
-
database: rails-4_0_2_development
|
21
|
-
pool: 5
|
22
|
-
|
23
|
-
# Connect on a TCP socket. Omitted by default since the client uses a
|
24
|
-
# domain socket that doesn't need configuration. Windows does not have
|
25
|
-
# domain sockets, so uncomment these lines.
|
26
|
-
#host: localhost
|
27
|
-
|
28
|
-
# The TCP port the server listens on. Defaults to 5432.
|
29
|
-
# If your server runs on a different port number, change accordingly.
|
30
|
-
#port: 5432
|
31
|
-
|
32
|
-
# Schema search path. The server defaults to $user,public
|
33
|
-
#schema_search_path: myapp,sharedapp,public
|
34
|
-
|
35
|
-
# Minimum log levels, in increasing order:
|
36
|
-
# debug5, debug4, debug3, debug2, debug1,
|
37
|
-
# log, notice, warning, error, fatal, and panic
|
38
|
-
# Defaults to warning.
|
39
|
-
#min_messages: notice
|
40
|
-
|
41
|
-
# Warning: The database defined as "test" will be erased and
|
42
|
-
# re-generated from your development database when you run "rake".
|
43
|
-
# Do not set this db to the same as development or production.
|
44
|
-
test:
|
45
|
-
adapter: postgresql
|
46
|
-
encoding: unicode
|
47
|
-
database: rails-4_0_2_test
|
48
|
-
pool: 5
|
49
|
-
|
50
|
-
production:
|
51
|
-
adapter: postgresql
|
52
|
-
encoding: unicode
|
53
|
-
database: rails-4_0_2_production
|
54
|
-
pool: 5
|
@@ -1,57 +0,0 @@
|
|
1
|
-
# PostgreSQL. Versions 8.2 and up are supported.
|
2
|
-
#
|
3
|
-
# Install the pg driver:
|
4
|
-
# gem install pg
|
5
|
-
# On OS X with Homebrew:
|
6
|
-
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
|
7
|
-
# On OS X with MacPorts:
|
8
|
-
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
|
9
|
-
# On Windows:
|
10
|
-
# gem install pg
|
11
|
-
# Choose the win32 build.
|
12
|
-
# Install PostgreSQL and put its /bin directory on your path.
|
13
|
-
#
|
14
|
-
# Configure Using Gemfile
|
15
|
-
# gem 'pg'
|
16
|
-
#
|
17
|
-
development:
|
18
|
-
adapter: postgresql
|
19
|
-
encoding: unicode
|
20
|
-
database: rails-4_0_2_development
|
21
|
-
pool: 5
|
22
|
-
password:
|
23
|
-
|
24
|
-
# Connect on a TCP socket. Omitted by default since the client uses a
|
25
|
-
# domain socket that doesn't need configuration. Windows does not have
|
26
|
-
# domain sockets, so uncomment these lines.
|
27
|
-
#host: localhost
|
28
|
-
|
29
|
-
# The TCP port the server listens on. Defaults to 5432.
|
30
|
-
# If your server runs on a different port number, change accordingly.
|
31
|
-
#port: 5432
|
32
|
-
|
33
|
-
# Schema search path. The server defaults to $user,public
|
34
|
-
#schema_search_path: myapp,sharedapp,public
|
35
|
-
|
36
|
-
# Minimum log levels, in increasing order:
|
37
|
-
# debug5, debug4, debug3, debug2, debug1,
|
38
|
-
# log, notice, warning, error, fatal, and panic
|
39
|
-
# Defaults to warning.
|
40
|
-
#min_messages: notice
|
41
|
-
|
42
|
-
# Warning: The database defined as "test" will be erased and
|
43
|
-
# re-generated from your development database when you run "rake".
|
44
|
-
# Do not set this db to the same as development or production.
|
45
|
-
test:
|
46
|
-
adapter: postgresql
|
47
|
-
encoding: unicode
|
48
|
-
database: rails-4_0_2_test
|
49
|
-
pool: 5
|
50
|
-
password:
|
51
|
-
|
52
|
-
production:
|
53
|
-
adapter: postgresql
|
54
|
-
encoding: unicode
|
55
|
-
database: rails-4_0_2_production
|
56
|
-
pool: 5
|
57
|
-
password:
|
@@ -1,29 +0,0 @@
|
|
1
|
-
Rails402::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
-
|
4
|
-
# In the development environment your application's code is reloaded on
|
5
|
-
# every request. This slows down response time but is perfect for development
|
6
|
-
# since you don't have to restart the web server when you make code changes.
|
7
|
-
config.cache_classes = false
|
8
|
-
|
9
|
-
# Do not eager load code on boot.
|
10
|
-
config.eager_load = false
|
11
|
-
|
12
|
-
# Show full error reports and disable caching.
|
13
|
-
config.consider_all_requests_local = true
|
14
|
-
config.action_controller.perform_caching = false
|
15
|
-
|
16
|
-
# Don't care if the mailer can't send.
|
17
|
-
config.action_mailer.raise_delivery_errors = false
|
18
|
-
|
19
|
-
# Print deprecation notices to the Rails logger.
|
20
|
-
config.active_support.deprecation = :log
|
21
|
-
|
22
|
-
# Raise an error on page load if there are pending migrations
|
23
|
-
config.active_record.migration_error = :page_load
|
24
|
-
|
25
|
-
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
-
# This option may cause significant delays in view rendering with a large
|
27
|
-
# number of complex assets.
|
28
|
-
config.assets.debug = true
|
29
|
-
end
|
@@ -1,80 +0,0 @@
|
|
1
|
-
Rails402::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
-
|
4
|
-
# Code is not reloaded between requests.
|
5
|
-
config.cache_classes = true
|
6
|
-
|
7
|
-
# Eager load code on boot. This eager loads most of Rails and
|
8
|
-
# your application in memory, allowing both thread web servers
|
9
|
-
# and those relying on copy on write to perform better.
|
10
|
-
# Rake tasks automatically ignore this option for performance.
|
11
|
-
config.eager_load = true
|
12
|
-
|
13
|
-
# Full error reports are disabled and caching is turned on.
|
14
|
-
config.consider_all_requests_local = false
|
15
|
-
config.action_controller.perform_caching = true
|
16
|
-
|
17
|
-
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
-
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
-
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
20
|
-
# config.action_dispatch.rack_cache = true
|
21
|
-
|
22
|
-
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
-
config.serve_static_assets = false
|
24
|
-
|
25
|
-
# Compress JavaScripts and CSS.
|
26
|
-
config.assets.js_compressor = :uglifier
|
27
|
-
# config.assets.css_compressor = :sass
|
28
|
-
|
29
|
-
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
-
config.assets.compile = false
|
31
|
-
|
32
|
-
# Generate digests for assets URLs.
|
33
|
-
config.assets.digest = true
|
34
|
-
|
35
|
-
# Version of your assets, change this if you want to expire all your assets.
|
36
|
-
config.assets.version = '1.0'
|
37
|
-
|
38
|
-
# Specifies the header that your server uses for sending files.
|
39
|
-
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
40
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
|
-
|
42
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
|
-
# config.force_ssl = true
|
44
|
-
|
45
|
-
# Set to :debug to see everything in the log.
|
46
|
-
config.log_level = :info
|
47
|
-
|
48
|
-
# Prepend all log lines with the following tags.
|
49
|
-
# config.log_tags = [ :subdomain, :uuid ]
|
50
|
-
|
51
|
-
# Use a different logger for distributed setups.
|
52
|
-
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
53
|
-
|
54
|
-
# Use a different cache store in production.
|
55
|
-
# config.cache_store = :mem_cache_store
|
56
|
-
|
57
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
58
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
59
|
-
|
60
|
-
# Precompile additional assets.
|
61
|
-
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
-
# config.assets.precompile += %w( search.js )
|
63
|
-
|
64
|
-
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
-
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
66
|
-
# config.action_mailer.raise_delivery_errors = false
|
67
|
-
|
68
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
69
|
-
# the I18n.default_locale when a translation can not be found).
|
70
|
-
config.i18n.fallbacks = true
|
71
|
-
|
72
|
-
# Send deprecation notices to registered listeners.
|
73
|
-
config.active_support.deprecation = :notify
|
74
|
-
|
75
|
-
# Disable automatic flushing of the log to improve performance.
|
76
|
-
# config.autoflush_log = false
|
77
|
-
|
78
|
-
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
|
-
config.log_formatter = ::Logger::Formatter.new
|
80
|
-
end
|