pageflow-sitemap 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile +7 -13
- data/README.md +2 -2
- data/app/assets/stylesheets/pageflow/sitemap/editor/{scroll_bar.css.scss → scroll_bar.scss} +0 -0
- data/app/assets/stylesheets/pageflow/sitemap/editor/{toolbar.css.scss → toolbar.scss} +0 -0
- data/app/assets/stylesheets/pageflow/sitemap/{editor.css.scss → editor.scss} +0 -0
- data/{exec/rails → bin/rails-cmd} +0 -0
- data/{exec → bin}/spring +0 -0
- data/{exec → bin}/teaspoon +0 -0
- data/config/locales/de.yml +9 -1
- data/config/locales/en.yml +11 -15
- data/lib/pageflow/sitemap/version.rb +1 -1
- data/pageflow-sitemap.gemspec +15 -15
- metadata +38 -199
- data/config/locales/new/help_button.de.yml +0 -7
- data/config/locales/new/help_button.en.yml +0 -7
- data/config/locales/new/tooltips.de.yml +0 -11
- data/config/locales/new/tooltips.en.yml +0 -11
- data/spec/d/r/.gitignore +0 -16
- data/spec/d/r/README.rdoc +0 -28
- data/spec/d/r/Rakefile +0 -6
- data/spec/d/r/app/admin/dashboard.rb +0 -33
- data/spec/d/r/app/assets/images/.keep +0 -0
- data/spec/d/r/app/assets/javascripts/active_admin.js.coffee +0 -2
- data/spec/d/r/app/assets/javascripts/application.js +0 -16
- data/spec/d/r/app/assets/javascripts/pageflow/application.js +0 -1
- data/spec/d/r/app/assets/javascripts/pageflow/editor.js +0 -4
- data/spec/d/r/app/assets/stylesheets/active_admin.css.scss +0 -18
- data/spec/d/r/app/assets/stylesheets/application.css +0 -13
- data/spec/d/r/app/assets/stylesheets/pageflow/application.css.scss +0 -1
- data/spec/d/r/app/assets/stylesheets/pageflow/editor.css.scss +0 -1
- data/spec/d/r/app/controllers/application_controller.rb +0 -5
- data/spec/d/r/app/controllers/concerns/.keep +0 -0
- data/spec/d/r/app/helpers/application_helper.rb +0 -2
- data/spec/d/r/app/mailers/.keep +0 -0
- data/spec/d/r/app/models/.keep +0 -0
- data/spec/d/r/app/models/ability.rb +0 -12
- data/spec/d/r/app/models/concerns/.keep +0 -0
- data/spec/d/r/app/models/user.rb +0 -9
- data/spec/d/r/app/views/layouts/application.html.erb +0 -14
- data/spec/d/r/bin/bundle +0 -3
- data/spec/d/r/bin/rails +0 -4
- data/spec/d/r/bin/rake +0 -4
- data/spec/d/r/config/application.rb +0 -31
- data/spec/d/r/config/boot.rb +0 -4
- data/spec/d/r/config/database.yml +0 -39
- data/spec/d/r/config/environment.rb +0 -5
- data/spec/d/r/config/environments/development.rb +0 -29
- data/spec/d/r/config/environments/production.rb +0 -80
- data/spec/d/r/config/environments/test.rb +0 -37
- data/spec/d/r/config/initializers/active_admin.rb +0 -225
- data/spec/d/r/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/d/r/config/initializers/devise.rb +0 -252
- data/spec/d/r/config/initializers/devise_async.rb +0 -6
- data/spec/d/r/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/d/r/config/initializers/friendly_id.rb +0 -88
- data/spec/d/r/config/initializers/inflections.rb +0 -16
- data/spec/d/r/config/initializers/mime_types.rb +0 -5
- data/spec/d/r/config/initializers/pageflow.rb +0 -76
- data/spec/d/r/config/initializers/resque.rb +0 -4
- data/spec/d/r/config/initializers/resque_enqueue_after_commit_patch.rb +0 -25
- data/spec/d/r/config/initializers/resque_logger.rb +0 -16
- data/spec/d/r/config/initializers/resque_mailer.rb +0 -4
- data/spec/d/r/config/initializers/secret_token.rb +0 -12
- data/spec/d/r/config/initializers/session_store.rb +0 -3
- data/spec/d/r/config/initializers/wrap_parameters.rb +0 -14
- data/spec/d/r/config/locales/devise.en.yml +0 -59
- data/spec/d/r/config/locales/en.yml +0 -23
- data/spec/d/r/config/routes.rb +0 -59
- data/spec/d/r/config.ru +0 -4
- data/spec/d/r/db/migrate/00000000000000_create_test_hosted_file.rb +0 -7
- data/spec/d/r/db/migrate/00000000000001_create_test_revision_component.rb +0 -10
- data/spec/d/r/db/migrate/20150209101518_create_active_admin_comments.rb +0 -19
- data/spec/d/r/db/migrate/20150209101524_devise_create_users.rb +0 -46
- data/spec/d/r/db/migrate/20150209101530_create_friendly_id_slugs.rb +0 -15
- data/spec/d/r/db/migrate/20150209101540_setup_schema.pageflow.rb +0 -208
- data/spec/d/r/db/migrate/20150209101541_add_attributes_to_users.pageflow.rb +0 -16
- data/spec/d/r/db/migrate/20150209101542_create_themings.pageflow.rb +0 -16
- data/spec/d/r/db/migrate/20150209101543_create_themings_for_existing_accounts.pageflow.rb +0 -27
- data/spec/d/r/db/migrate/20150209101544_change_theme_references_to_theming_references.pageflow.rb +0 -46
- data/spec/d/r/db/migrate/20150209101545_remove_attributes_from_themes.pageflow.rb +0 -11
- data/spec/d/r/db/migrate/20150209101546_create_accounts_themes_join_table.pageflow.rb +0 -9
- data/spec/d/r/db/migrate/20150209101547_move_cname_from_account_to_theming.pageflow.rb +0 -22
- data/spec/d/r/db/migrate/20150209101548_drop_themes.pageflow.rb +0 -15
- data/spec/d/r/db/migrate/20150209101549_add_confirmed_by_to_encoded_files.pageflow.rb +0 -7
- data/spec/d/r/db/migrate/20150209101550_add_home_url_attributes_to_themings_and_revisions.pageflow.rb +0 -10
- data/spec/d/r/db/migrate/20150209101551_create_widgets.pageflow.rb +0 -12
- data/spec/d/r/db/migrate/20150209101552_add_emphasize_chapter_beginning_to_revisions.pageflow.rb +0 -6
- data/spec/d/r/db/migrate/20150209101553_add_emphasize_new_pages_to_revisions.pageflow.rb +0 -6
- data/spec/d/r/db/migrate/20150209101554_add_sharing_image_to_revisions.pageflow.rb +0 -8
- data/spec/d/r/db/schema.rb +0 -316
- data/spec/d/r/db/seeds.rb +0 -30
- data/spec/d/r/lib/assets/.keep +0 -0
- data/spec/d/r/lib/tasks/.keep +0 -0
- data/spec/d/r/lib/tasks/resque.rake +0 -7
- data/spec/d/r/public/404.html +0 -58
- data/spec/d/r/public/422.html +0 -58
- data/spec/d/r/public/500.html +0 -57
- data/spec/d/r/public/favicon.ico +0 -0
- data/spec/d/r/public/javascripts/translations.js +0 -2
- data/spec/d/r/public/robots.txt +0 -5
- data/spec/d/r/vendor/assets/javascripts/.keep +0 -0
- data/spec/d/r/vendor/assets/stylesheets/.keep +0 -0
@@ -1,225 +0,0 @@
|
|
1
|
-
ActiveAdmin.setup do |config|
|
2
|
-
config.namespace :admin do |admin|
|
3
|
-
# Place a user user profile button next to the sign out link.
|
4
|
-
admin.build_menu :utility_navigation do |menu|
|
5
|
-
menu.add(:label => proc { display_name current_active_admin_user },
|
6
|
-
:id => 'current_user',
|
7
|
-
:if => proc { current_active_admin_user? },
|
8
|
-
:url => '/admin/users/me')
|
9
|
-
admin.add_logout_button_to_menu(menu)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
# == Site Title
|
14
|
-
#
|
15
|
-
# Set the title that is displayed on the main layout
|
16
|
-
# for each of the active admin pages.
|
17
|
-
#
|
18
|
-
config.site_title = "Rails405"
|
19
|
-
|
20
|
-
# Set the link url for the title. For example, to take
|
21
|
-
# users to your main site. Defaults to no link.
|
22
|
-
#
|
23
|
-
# config.site_title_link = "/"
|
24
|
-
|
25
|
-
# Set an optional image to be displayed for the header
|
26
|
-
# instead of a string (overrides :site_title)
|
27
|
-
#
|
28
|
-
# Note: Recommended image height is 21px to properly fit in the header
|
29
|
-
#
|
30
|
-
# config.site_title_image = "/images/logo.png"
|
31
|
-
|
32
|
-
# == Default Namespace
|
33
|
-
#
|
34
|
-
# Set the default namespace each administration resource
|
35
|
-
# will be added to.
|
36
|
-
#
|
37
|
-
# eg:
|
38
|
-
# config.default_namespace = :hello_world
|
39
|
-
#
|
40
|
-
# This will create resources in the HelloWorld module and
|
41
|
-
# will namespace routes to /hello_world/*
|
42
|
-
#
|
43
|
-
# To set no namespace by default, use:
|
44
|
-
# config.default_namespace = false
|
45
|
-
#
|
46
|
-
# Default:
|
47
|
-
# config.default_namespace = :admin
|
48
|
-
#
|
49
|
-
# You can customize the settings for each namespace by using
|
50
|
-
# a namespace block. For example, to change the site title
|
51
|
-
# within a namespace:
|
52
|
-
#
|
53
|
-
# config.namespace :admin do |admin|
|
54
|
-
# admin.site_title = "Custom Admin Title"
|
55
|
-
# end
|
56
|
-
#
|
57
|
-
# This will ONLY change the title for the admin section. Other
|
58
|
-
# namespaces will continue to use the main "site_title" configuration.
|
59
|
-
|
60
|
-
# == User Authentication
|
61
|
-
#
|
62
|
-
# Active Admin will automatically call an authentication
|
63
|
-
# method in a before filter of all controller actions to
|
64
|
-
# ensure that there is a currently logged in admin user.
|
65
|
-
#
|
66
|
-
# This setting changes the method which Active Admin calls
|
67
|
-
# within the controller.
|
68
|
-
config.authentication_method = :authenticate_user!
|
69
|
-
config.authorization_adapter = ActiveAdmin::CanCanAdapter
|
70
|
-
|
71
|
-
|
72
|
-
# == Current User
|
73
|
-
#
|
74
|
-
# Active Admin will associate actions with the current
|
75
|
-
# user performing them.
|
76
|
-
#
|
77
|
-
# This setting changes the method which Active Admin calls
|
78
|
-
# to return the currently logged in user.
|
79
|
-
config.current_user_method = :current_user
|
80
|
-
|
81
|
-
|
82
|
-
# == Logging Out
|
83
|
-
#
|
84
|
-
# Active Admin displays a logout link on each screen. These
|
85
|
-
# settings configure the location and method used for the link.
|
86
|
-
#
|
87
|
-
# This setting changes the path where the link points to. If it's
|
88
|
-
# a string, the strings is used as the path. If it's a Symbol, we
|
89
|
-
# will call the method to return the path.
|
90
|
-
#
|
91
|
-
# Default:
|
92
|
-
config.logout_link_path = :destroy_user_session_path
|
93
|
-
|
94
|
-
# This setting changes the http method used when rendering the
|
95
|
-
# link. For example :get, :delete, :put, etc..
|
96
|
-
#
|
97
|
-
# Default:
|
98
|
-
# config.logout_link_method = :get
|
99
|
-
|
100
|
-
|
101
|
-
# == Root
|
102
|
-
#
|
103
|
-
# Set the action to call for the root path. You can set different
|
104
|
-
# roots for each namespace.
|
105
|
-
#
|
106
|
-
# Default:
|
107
|
-
# config.root_to = 'dashboard#index'
|
108
|
-
|
109
|
-
|
110
|
-
# == Admin Comments
|
111
|
-
#
|
112
|
-
# This allows your users to comment on any resource registered with Active Admin.
|
113
|
-
#
|
114
|
-
# You can completely disable comments:
|
115
|
-
# config.allow_comments = false
|
116
|
-
#
|
117
|
-
# You can disable the menu item for the comments index page:
|
118
|
-
# config.show_comments_in_menu = false
|
119
|
-
#
|
120
|
-
# You can change the name under which comments are registered:
|
121
|
-
# config.comments_registration_name = 'AdminComment'
|
122
|
-
|
123
|
-
|
124
|
-
# == Batch Actions
|
125
|
-
#
|
126
|
-
# Enable and disable Batch Actions
|
127
|
-
#
|
128
|
-
config.batch_actions = true
|
129
|
-
|
130
|
-
|
131
|
-
# == Controller Filters
|
132
|
-
#
|
133
|
-
# You can add before, after and around filters to all of your
|
134
|
-
# Active Admin resources and pages from here.
|
135
|
-
#
|
136
|
-
# config.before_filter :do_something_awesome
|
137
|
-
|
138
|
-
|
139
|
-
# == Setting a Favicon
|
140
|
-
#
|
141
|
-
# config.favicon = '/assets/favicon.ico'
|
142
|
-
|
143
|
-
|
144
|
-
# == Register Stylesheets & Javascripts
|
145
|
-
#
|
146
|
-
# We recommend using the built in Active Admin layout and loading
|
147
|
-
# up your own stylesheets / javascripts to customize the look
|
148
|
-
# and feel.
|
149
|
-
#
|
150
|
-
# To load a stylesheet:
|
151
|
-
# config.register_stylesheet 'my_stylesheet.css'
|
152
|
-
#
|
153
|
-
# You can provide an options hash for more control, which is passed along to stylesheet_link_tag():
|
154
|
-
# config.register_stylesheet 'my_print_stylesheet.css', :media => :print
|
155
|
-
#
|
156
|
-
# To load a javascript file:
|
157
|
-
# config.register_javascript 'my_javascript.js'
|
158
|
-
|
159
|
-
|
160
|
-
# == CSV options
|
161
|
-
#
|
162
|
-
# Set the CSV builder separator
|
163
|
-
# config.csv_options = { :col_sep => ';' }
|
164
|
-
#
|
165
|
-
# Force the use of quotes
|
166
|
-
# config.csv_options = { :force_quotes => true }
|
167
|
-
|
168
|
-
|
169
|
-
# == Menu System
|
170
|
-
#
|
171
|
-
# You can add a navigation menu to be used in your application, or configure a provided menu
|
172
|
-
#
|
173
|
-
# To change the default utility navigation to show a link to your website & a logout btn
|
174
|
-
#
|
175
|
-
# config.namespace :admin do |admin|
|
176
|
-
# admin.build_menu :utility_navigation do |menu|
|
177
|
-
# menu.add label: "My Great Website", url: "http://www.mygreatwebsite.com", html_options: { target: :blank }
|
178
|
-
# admin.add_logout_button_to_menu menu
|
179
|
-
# end
|
180
|
-
# end
|
181
|
-
#
|
182
|
-
# If you wanted to add a static menu item to the default menu provided:
|
183
|
-
#
|
184
|
-
# config.namespace :admin do |admin|
|
185
|
-
# admin.build_menu :default do |menu|
|
186
|
-
# menu.add label: "My Great Website", url: "http://www.mygreatwebsite.com", html_options: { target: :blank }
|
187
|
-
# end
|
188
|
-
# end
|
189
|
-
|
190
|
-
|
191
|
-
# == Download Links
|
192
|
-
#
|
193
|
-
# You can disable download links on resource listing pages,
|
194
|
-
# or customize the formats shown per namespace/globally
|
195
|
-
#
|
196
|
-
# To disable/customize for the :admin namespace:
|
197
|
-
#
|
198
|
-
# config.namespace :admin do |admin|
|
199
|
-
#
|
200
|
-
# # Disable the links entirely
|
201
|
-
# admin.download_links = false
|
202
|
-
#
|
203
|
-
# # Only show XML & PDF options
|
204
|
-
# admin.download_links = [:xml, :pdf]
|
205
|
-
#
|
206
|
-
# end
|
207
|
-
|
208
|
-
|
209
|
-
# == Pagination
|
210
|
-
#
|
211
|
-
# Pagination is enabled by default for all resources.
|
212
|
-
# You can control the default per page count for all resources here.
|
213
|
-
#
|
214
|
-
# config.default_per_page = 30
|
215
|
-
|
216
|
-
|
217
|
-
# == Filters
|
218
|
-
#
|
219
|
-
# By default the index screen includes a “Filters” sidebar on the right
|
220
|
-
# hand side with a filter for each attribute of the registered model.
|
221
|
-
# You can enable or disable them for all resources here.
|
222
|
-
#
|
223
|
-
# config.filters = true
|
224
|
-
|
225
|
-
end
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
-
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,252 +0,0 @@
|
|
1
|
-
# Use this hook to configure devise mailer, warden hooks and so forth.
|
2
|
-
# Many of these configuration options can be set straight in your model.
|
3
|
-
Devise.setup do |config|
|
4
|
-
# ==> Mailer Configuration
|
5
|
-
# Configure the e-mail address which will be shown in Devise::Mailer,
|
6
|
-
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
|
7
|
-
config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
|
8
|
-
|
9
|
-
# Configure the class responsible to send e-mails.
|
10
|
-
# config.mailer = "Devise::Mailer"
|
11
|
-
|
12
|
-
# ==> ORM configuration
|
13
|
-
# Load and configure the ORM. Supports :active_record (default) and
|
14
|
-
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
15
|
-
# available as additional gems.
|
16
|
-
require 'devise/orm/active_record'
|
17
|
-
|
18
|
-
# ==> Configuration for any authentication mechanism
|
19
|
-
# Configure which keys are used when authenticating a user. The default is
|
20
|
-
# just :email. You can configure it to use [:username, :subdomain], so for
|
21
|
-
# authenticating a user, both parameters are required. Remember that those
|
22
|
-
# parameters are used only when authenticating and not when retrieving from
|
23
|
-
# session. If you need permissions, you should implement that in a before filter.
|
24
|
-
# You can also supply a hash where the value is a boolean determining whether
|
25
|
-
# or not authentication should be aborted when the value is not present.
|
26
|
-
# config.authentication_keys = [ :email ]
|
27
|
-
|
28
|
-
# Configure parameters from the request object used for authentication. Each entry
|
29
|
-
# given should be a request method and it will automatically be passed to the
|
30
|
-
# find_for_authentication method and considered in your model lookup. For instance,
|
31
|
-
# if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
|
32
|
-
# The same considerations mentioned for authentication_keys also apply to request_keys.
|
33
|
-
# config.request_keys = []
|
34
|
-
|
35
|
-
# Configure which authentication keys should be case-insensitive.
|
36
|
-
# These keys will be downcased upon creating or modifying a user and when used
|
37
|
-
# to authenticate or find a user. Default is :email.
|
38
|
-
config.case_insensitive_keys = [ :email ]
|
39
|
-
|
40
|
-
# Configure which authentication keys should have whitespace stripped.
|
41
|
-
# These keys will have whitespace before and after removed upon creating or
|
42
|
-
# modifying a user and when used to authenticate or find a user. Default is :email.
|
43
|
-
config.strip_whitespace_keys = [ :email ]
|
44
|
-
|
45
|
-
# Tell if authentication through request.params is enabled. True by default.
|
46
|
-
# It can be set to an array that will enable params authentication only for the
|
47
|
-
# given strategies, for example, `config.params_authenticatable = [:database]` will
|
48
|
-
# enable it only for database (email + password) authentication.
|
49
|
-
# config.params_authenticatable = true
|
50
|
-
|
51
|
-
# Tell if authentication through HTTP Auth is enabled. False by default.
|
52
|
-
# It can be set to an array that will enable http authentication only for the
|
53
|
-
# given strategies, for example, `config.http_authenticatable = [:token]` will
|
54
|
-
# enable it only for token authentication. The supported strategies are:
|
55
|
-
# :database = Support basic authentication with authentication key + password
|
56
|
-
# :token = Support basic authentication with token authentication key
|
57
|
-
# :token_options = Support token authentication with options as defined in
|
58
|
-
# http://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Token.html
|
59
|
-
# config.http_authenticatable = false
|
60
|
-
|
61
|
-
# If http headers should be returned for AJAX requests. True by default.
|
62
|
-
# config.http_authenticatable_on_xhr = true
|
63
|
-
|
64
|
-
# The realm used in Http Basic Authentication. "Application" by default.
|
65
|
-
# config.http_authentication_realm = "Application"
|
66
|
-
|
67
|
-
# It will change confirmation, password recovery and other workflows
|
68
|
-
# to behave the same regardless if the e-mail provided was right or wrong.
|
69
|
-
# Does not affect registerable.
|
70
|
-
# config.paranoid = true
|
71
|
-
|
72
|
-
# By default Devise will store the user in session. You can skip storage for
|
73
|
-
# :http_auth and :token_auth by adding those symbols to the array below.
|
74
|
-
# Notice that if you are skipping storage for all authentication paths, you
|
75
|
-
# may want to disable generating routes to Devise's sessions controller by
|
76
|
-
# passing :skip => :sessions to `devise_for` in your config/routes.rb
|
77
|
-
config.skip_session_storage = [:http_auth]
|
78
|
-
|
79
|
-
# By default, Devise cleans up the CSRF token on authentication to
|
80
|
-
# avoid CSRF token fixation attacks. This means that, when using AJAX
|
81
|
-
# requests for sign in and sign up, you need to get a new CSRF token
|
82
|
-
# from the server. You can disable this option at your own risk.
|
83
|
-
# config.clean_up_csrf_token_on_authentication = true
|
84
|
-
|
85
|
-
# ==> Configuration for :database_authenticatable
|
86
|
-
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
87
|
-
# using other encryptors, it sets how many times you want the password re-encrypted.
|
88
|
-
#
|
89
|
-
# Limiting the stretches to just one in testing will increase the performance of
|
90
|
-
# your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
|
91
|
-
# a value less than 10 in other environments.
|
92
|
-
config.stretches = Rails.env.test? ? 1 : 10
|
93
|
-
|
94
|
-
# Setup a pepper to generate the encrypted password.
|
95
|
-
# config.pepper = "c7282799f3d21de7402a062e9d51996ec7ff599687f8e2df2b5288fd37260a67e162c765d3c3486cafde55d0c84ca07b64252a325910394a2cea89f9fd0eb0e8"
|
96
|
-
|
97
|
-
# ==> Configuration for :confirmable
|
98
|
-
# A period that the user is allowed to access the website even without
|
99
|
-
# confirming his account. For instance, if set to 2.days, the user will be
|
100
|
-
# able to access the website for two days without confirming his account,
|
101
|
-
# access will be blocked just in the third day. Default is 0.days, meaning
|
102
|
-
# the user cannot access the website without confirming his account.
|
103
|
-
# config.allow_unconfirmed_access_for = 2.days
|
104
|
-
|
105
|
-
# A period that the user is allowed to confirm their account before their
|
106
|
-
# token becomes invalid. For example, if set to 3.days, the user can confirm
|
107
|
-
# their account within 3 days after the mail was sent, but on the fourth day
|
108
|
-
# their account can't be confirmed with the token any more.
|
109
|
-
# Default is nil, meaning there is no restriction on how long a user can take
|
110
|
-
# before confirming their account.
|
111
|
-
# config.confirm_within = 3.days
|
112
|
-
|
113
|
-
# If true, requires any email changes to be confirmed (exactly the same way as
|
114
|
-
# initial account confirmation) to be applied. Requires additional unconfirmed_email
|
115
|
-
# db field (see migrations). Until confirmed new email is stored in
|
116
|
-
# unconfirmed email column, and copied to email column on successful confirmation.
|
117
|
-
config.reconfirmable = true
|
118
|
-
|
119
|
-
# Defines which key will be used when confirming an account
|
120
|
-
# config.confirmation_keys = [ :email ]
|
121
|
-
|
122
|
-
# ==> Configuration for :rememberable
|
123
|
-
# The time the user will be remembered without asking for credentials again.
|
124
|
-
# config.remember_for = 2.weeks
|
125
|
-
|
126
|
-
# If true, extends the user's remember period when remembered via cookie.
|
127
|
-
# config.extend_remember_period = false
|
128
|
-
|
129
|
-
# Options to be passed to the created cookie. For instance, you can set
|
130
|
-
# :secure => true in order to force SSL only cookies.
|
131
|
-
# config.rememberable_options = {}
|
132
|
-
|
133
|
-
# ==> Configuration for :validatable
|
134
|
-
# Range for password length. Default is 8..128.
|
135
|
-
config.password_length = 8..128
|
136
|
-
|
137
|
-
# Email regex used to validate email formats. It simply asserts that
|
138
|
-
# one (and only one) @ exists in the given string. This is mainly
|
139
|
-
# to give user feedback and not to assert the e-mail validity.
|
140
|
-
# config.email_regexp = /\A[^@]+@[^@]+\z/
|
141
|
-
|
142
|
-
# ==> Configuration for :timeoutable
|
143
|
-
# The time you want to timeout the user session without activity. After this
|
144
|
-
# time the user will be asked for credentials again. Default is 30 minutes.
|
145
|
-
# config.timeout_in = 30.minutes
|
146
|
-
|
147
|
-
# If true, expires auth token on session timeout.
|
148
|
-
# config.expire_auth_token_on_timeout = false
|
149
|
-
|
150
|
-
# ==> Configuration for :lockable
|
151
|
-
# Defines which strategy will be used to lock an account.
|
152
|
-
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
153
|
-
# :none = No lock strategy. You should handle locking by yourself.
|
154
|
-
# config.lock_strategy = :failed_attempts
|
155
|
-
|
156
|
-
# Defines which key will be used when locking and unlocking an account
|
157
|
-
# config.unlock_keys = [ :email ]
|
158
|
-
|
159
|
-
# Defines which strategy will be used to unlock an account.
|
160
|
-
# :email = Sends an unlock link to the user email
|
161
|
-
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
162
|
-
# :both = Enables both strategies
|
163
|
-
# :none = No unlock strategy. You should handle unlocking by yourself.
|
164
|
-
# config.unlock_strategy = :both
|
165
|
-
|
166
|
-
# Number of authentication tries before locking an account if lock_strategy
|
167
|
-
# is failed attempts.
|
168
|
-
# config.maximum_attempts = 20
|
169
|
-
|
170
|
-
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
171
|
-
# config.unlock_in = 1.hour
|
172
|
-
|
173
|
-
# ==> Configuration for :recoverable
|
174
|
-
#
|
175
|
-
# Defines which key will be used when recovering the password for an account
|
176
|
-
# config.reset_password_keys = [ :email ]
|
177
|
-
|
178
|
-
# Time interval you can reset your password with a reset password key.
|
179
|
-
# Don't put a too small interval or your users won't have the time to
|
180
|
-
# change their passwords.
|
181
|
-
config.reset_password_within = 6.hours
|
182
|
-
|
183
|
-
# ==> Configuration for :encryptable
|
184
|
-
# Allow you to use another encryption algorithm besides bcrypt (default). You can use
|
185
|
-
# :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
|
186
|
-
# :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
|
187
|
-
# and :restful_authentication_sha1 (then you should set stretches to 10, and copy
|
188
|
-
# REST_AUTH_SITE_KEY to pepper).
|
189
|
-
#
|
190
|
-
# Require the `devise-encryptable` gem when using anything other than bcrypt
|
191
|
-
# config.encryptor = :sha512
|
192
|
-
|
193
|
-
# ==> Configuration for :token_authenticatable
|
194
|
-
# Defines name of the authentication token params key
|
195
|
-
# config.token_authentication_key = :auth_token
|
196
|
-
|
197
|
-
# ==> Scopes configuration
|
198
|
-
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
199
|
-
# "users/sessions/new". It's turned off by default because it's slower if you
|
200
|
-
# are using only default views.
|
201
|
-
# config.scoped_views = false
|
202
|
-
|
203
|
-
# Configure the default scope given to Warden. By default it's the first
|
204
|
-
# devise role declared in your routes (usually :user).
|
205
|
-
# config.default_scope = :user
|
206
|
-
|
207
|
-
# Set this configuration to false if you want /users/sign_out to sign out
|
208
|
-
# only the current scope. By default, Devise signs out all scopes.
|
209
|
-
# config.sign_out_all_scopes = true
|
210
|
-
|
211
|
-
# ==> Navigation configuration
|
212
|
-
# Lists the formats that should be treated as navigational. Formats like
|
213
|
-
# :html, should redirect to the sign in page when the user does not have
|
214
|
-
# access, but formats like :xml or :json, should return 401.
|
215
|
-
#
|
216
|
-
# If you have any extra navigational formats, like :iphone or :mobile, you
|
217
|
-
# should add them to the navigational formats lists.
|
218
|
-
#
|
219
|
-
# The "*/*" below is required to match Internet Explorer requests.
|
220
|
-
# config.navigational_formats = ["*/*", :html]
|
221
|
-
|
222
|
-
# The default HTTP method used to sign out a resource. Default is :delete.
|
223
|
-
config.sign_out_via = :delete
|
224
|
-
|
225
|
-
# ==> OmniAuth
|
226
|
-
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
227
|
-
# up on your models and hooks.
|
228
|
-
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
|
229
|
-
|
230
|
-
# ==> Warden configuration
|
231
|
-
# If you want to use other strategies, that are not supported by Devise, or
|
232
|
-
# change the failure app, you can configure them inside the config.warden block.
|
233
|
-
#
|
234
|
-
# config.warden do |manager|
|
235
|
-
# manager.intercept_401 = false
|
236
|
-
# manager.default_strategies(:scope => :user).unshift :some_external_strategy
|
237
|
-
# end
|
238
|
-
|
239
|
-
# ==> Mountable engine configurations
|
240
|
-
# When using Devise inside an engine, let's call it `MyEngine`, and this engine
|
241
|
-
# is mountable, there are some extra configurations to be taken into account.
|
242
|
-
# The following options are available, assuming the engine is mounted as:
|
243
|
-
#
|
244
|
-
# mount MyEngine, at: "/my_engine"
|
245
|
-
#
|
246
|
-
# The router that invoked `devise_for`, in the example above, would be:
|
247
|
-
# config.router_name = :my_engine
|
248
|
-
#
|
249
|
-
# When using omniauth, Devise cannot automatically set Omniauth path,
|
250
|
-
# so you need to do it manually. For the users scope, it would be:
|
251
|
-
# config.omniauth_path_prefix = "/my_engine/users/auth"
|
252
|
-
end
|
@@ -1,88 +0,0 @@
|
|
1
|
-
# FriendlyId Global Configuration
|
2
|
-
#
|
3
|
-
# Use this to set up shared configuration options for your entire application.
|
4
|
-
# Any of the configuration options shown here can also be applied to single
|
5
|
-
# models by passing arguments to the `friendly_id` class method or defining
|
6
|
-
# methods in your model.
|
7
|
-
#
|
8
|
-
# To learn more, check out the guide:
|
9
|
-
#
|
10
|
-
# http://norman.github.io/friendly_id/file.Guide.html
|
11
|
-
|
12
|
-
FriendlyId.defaults do |config|
|
13
|
-
# ## Reserved Words
|
14
|
-
#
|
15
|
-
# Some words could conflict with Rails's routes when used as slugs, or are
|
16
|
-
# undesirable to allow as slugs. Edit this list as needed for your app.
|
17
|
-
config.use :reserved
|
18
|
-
|
19
|
-
config.reserved_words = %w(new edit index session login logout users admin
|
20
|
-
stylesheets assets javascripts images)
|
21
|
-
|
22
|
-
# ## Friendly Finders
|
23
|
-
#
|
24
|
-
# Uncomment this to use friendly finders in all models. By default, if
|
25
|
-
# you wish to find a record by its friendly id, you must do:
|
26
|
-
#
|
27
|
-
# MyModel.friendly.find('foo')
|
28
|
-
#
|
29
|
-
# If you uncomment this, you can do:
|
30
|
-
#
|
31
|
-
# MyModel.find('foo')
|
32
|
-
#
|
33
|
-
# This is significantly more convenient but may not be appropriate for
|
34
|
-
# all applications, so you must explicity opt-in to this behavior. You can
|
35
|
-
# always also configure it on a per-model basis if you prefer.
|
36
|
-
#
|
37
|
-
# Something else to consider is that using the :finders addon boosts
|
38
|
-
# performance because it will avoid Rails-internal code that makes runtime
|
39
|
-
# calls to `Module.extend`.
|
40
|
-
#
|
41
|
-
# config.use :finders
|
42
|
-
#
|
43
|
-
# ## Slugs
|
44
|
-
#
|
45
|
-
# Most applications will use the :slugged module everywhere. If you wish
|
46
|
-
# to do so, uncomment the following line.
|
47
|
-
#
|
48
|
-
# config.use :slugged
|
49
|
-
#
|
50
|
-
# By default, FriendlyId's :slugged addon expects the slug column to be named
|
51
|
-
# 'slug', but you can change it if you wish.
|
52
|
-
#
|
53
|
-
# config.slug_column = 'slug'
|
54
|
-
#
|
55
|
-
# When FriendlyId can not generate a unique ID from your base method, it appends
|
56
|
-
# a UUID, separated by a single dash. You can configure the character used as the
|
57
|
-
# separator. If you're upgrading from FriendlyId 4, you may wish to replace this
|
58
|
-
# with two dashes.
|
59
|
-
#
|
60
|
-
# config.sequence_separator = '-'
|
61
|
-
#
|
62
|
-
# ## Tips and Tricks
|
63
|
-
#
|
64
|
-
# ### Controlling when slugs are generated
|
65
|
-
#
|
66
|
-
# As of FriendlyId 5.0, new slugs are generated only when the slug field is
|
67
|
-
# nil, but if you're using a column as your base method can change this
|
68
|
-
# behavior by overriding the `should_generate_new_friendly_id` method that
|
69
|
-
# FriendlyId adds to your model. The change below makes FriendlyId 5.0 behave
|
70
|
-
# more like 4.0.
|
71
|
-
#
|
72
|
-
# config.use Module.new {
|
73
|
-
# def should_generate_new_friendly_id?
|
74
|
-
# slug.blank? || <your_column_name_here>_changed?
|
75
|
-
# end
|
76
|
-
# }
|
77
|
-
#
|
78
|
-
# FriendlyId uses Rails's `parameterize` method to generate slugs, but for
|
79
|
-
# languages that don't use the Roman alphabet, that's not usually suffient. Here
|
80
|
-
# we use the Babosa library to transliterate Russian Cyrillic slugs to ASCII. If
|
81
|
-
# you use this, don't forget to add "babosa" to your Gemfile.
|
82
|
-
#
|
83
|
-
# config.use Module.new {
|
84
|
-
# def normalize_friendly_id(text)
|
85
|
-
# text.to_slug.normalize! :transliterations => [:russian, :latin]
|
86
|
-
# end
|
87
|
-
# }
|
88
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format. Inflections
|
4
|
-
# are locale specific, and you may define rules for as many different
|
5
|
-
# locales as you wish. All of these examples are active by default:
|
6
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
-
# inflect.singular /^(ox)en/i, '\1'
|
9
|
-
# inflect.irregular 'person', 'people'
|
10
|
-
# inflect.uncountable %w( fish sheep )
|
11
|
-
# end
|
12
|
-
|
13
|
-
# These inflection rules are supported but not enabled by default:
|
14
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
-
# inflect.acronym 'RESTful'
|
16
|
-
# end
|
@@ -1,76 +0,0 @@
|
|
1
|
-
ActiveAdmin.application.load_paths.unshift(Dir[Rails.root.join('app/admin')])
|
2
|
-
# Register admins for pageflow models with active admin.
|
3
|
-
ActiveAdmin.application.load_paths.unshift(Dir[Pageflow::Engine.root.join('admins')])
|
4
|
-
|
5
|
-
Pageflow.configure do |config|
|
6
|
-
# The email address to use as from header in invitation mails to new
|
7
|
-
# users.
|
8
|
-
config.mailer_sender = 'change-me-at-config-initializers-pageflow@example.com'
|
9
|
-
|
10
|
-
# Page types available in the editor. Add futher page types from
|
11
|
-
# page type engines below.
|
12
|
-
config.register_page_type(Pageflow::BuiltInPageType.background_image)
|
13
|
-
config.register_page_type(Pageflow::BuiltInPageType.background_video)
|
14
|
-
config.register_page_type(Pageflow::BuiltInPageType.video)
|
15
|
-
config.register_page_type(Pageflow::BuiltInPageType.audio)
|
16
|
-
config.register_page_type(Pageflow::BuiltInPageType.audio_loop)
|
17
|
-
# config.register_page_type(Pageflow::Rainbow::PageType.new)
|
18
|
-
|
19
|
-
# Add custom themes by invoking the pageflow:theme generator and
|
20
|
-
# registering the theme here.
|
21
|
-
#
|
22
|
-
# $ rails generate pageflow:theme my_custom_theme
|
23
|
-
# => creates app/assets/stylesheets/pageflow/themes/my_custom_theme.css.scss
|
24
|
-
#
|
25
|
-
config.themes.register(:default)
|
26
|
-
# config.themes.register(:my_custom_theme)
|
27
|
-
|
28
|
-
# String to interpolate into paths of files generated by paperclip
|
29
|
-
# preprocessors. This allows to refresh cdn caches after
|
30
|
-
# reprocessing attachments.
|
31
|
-
config.paperclip_attachments_version = 'v1'
|
32
|
-
|
33
|
-
# Path to the location in the filesystem where attachments shall
|
34
|
-
# be stored. The value of this option is available via the
|
35
|
-
# pageflow_filesystem_root paperclip interpolation.
|
36
|
-
config.paperclip_filesystem_root = 'tmp/attachments/production'
|
37
|
-
|
38
|
-
# Rewrite the below section to use your favorite configuration
|
39
|
-
# method: ENV variables, secrets.yml, custom yml files. If you use
|
40
|
-
# environment variables consider the dotenv gem to configure your
|
41
|
-
# application via a single .env file.
|
42
|
-
#
|
43
|
-
# Whatever you choose, do NOT hard code values below. That makes it
|
44
|
-
# hard to switch environments and risks leaking secrects.
|
45
|
-
|
46
|
-
# Default options for paperclip attachments which are supposed to
|
47
|
-
# use s3 storage. All options allowed in paperclip has_attached_file
|
48
|
-
# calls are allowed.
|
49
|
-
config.paperclip_s3_default_options.merge!(
|
50
|
-
:s3_credentials => {
|
51
|
-
:bucket => 'com-example-pageflow-development',
|
52
|
-
:access_key_id => 'xxx',
|
53
|
-
:secret_access_key => 'xxx',
|
54
|
-
:s3_host_name => 's3-eu-west-1.amazonaws.com'
|
55
|
-
},
|
56
|
-
:s3_host_alias => 'com-example-pageflow.s3-website-eu-west-1.amazonaws.com',
|
57
|
-
:s3_protocol => 'http'
|
58
|
-
)
|
59
|
-
|
60
|
-
# Default options for paperclip attachments which are supposed to
|
61
|
-
# use filesystem storage. All options allowed in paperclip has_attached_file
|
62
|
-
# calls are allowed.
|
63
|
-
config.zencoder_options.merge!(
|
64
|
-
:api_key => 'xxx',
|
65
|
-
:output_bucket => 'com-example-pageflow-out',
|
66
|
-
:s3_host_alias => 'com-example-pageflow-out.s3-website-eu-west-1.amazonaws.com',
|
67
|
-
:s3_protocol => 'http',
|
68
|
-
:attachments_version => 'v1'
|
69
|
-
)
|
70
|
-
end
|
71
|
-
|
72
|
-
# Comment out this call if you wish to run rails generators or rake
|
73
|
-
# tasks while the Pageflow configuration is in an invalid
|
74
|
-
# state. Otherwise Pageflow configuration errors might prevent you
|
75
|
-
# from initializing the environment. Required for Pageflow to run.
|
76
|
-
Pageflow.finalize!
|