ecm_sliders2 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +35 -0
- data/Rakefile +27 -0
- data/app/helpers/ecm/sliders_helper.rb +10 -0
- data/app/helpers/markup_helper.rb +7 -0
- data/app/models/ecm/sliders/item.rb +36 -0
- data/app/models/ecm/sliders/slider.rb +40 -0
- data/app/views/ecm/sliders/sliders/_slider.haml +3 -0
- data/config/locales/de.yml +52 -0
- data/config/locales/en.yml +52 -0
- data/config/routes.rb +6 -0
- data/db/migrate/001_create_ecm_sliders_sliders.rb +14 -0
- data/db/migrate/002_create_ecm_sliders_items.rb +14 -0
- data/lib/ecm/sliders/configuration.rb +23 -0
- data/lib/ecm/sliders/engine.rb +7 -0
- data/lib/ecm/sliders/routing.rb +14 -0
- data/lib/ecm/sliders/version.rb +6 -0
- data/lib/ecm_sliders2.rb +17 -0
- data/lib/generators/ecm/sliders/install/install_generator.rb +21 -0
- data/lib/generators/ecm/sliders/install/templates/initializer.rb +39 -0
- data/lib/generators/ecm/sliders/install/templates/routes.source +5 -0
- data/lib/tasks/ecm_sliders_tasks.rake +67 -0
- data/spec/controllers/ecm/sliders/sliders_controller_spec.rb +23 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/admin/admin_users.rb +20 -0
- data/spec/dummy/app/admin/dashboards.rb +33 -0
- data/spec/dummy/app/assets/javascripts/active_admin.js +1 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/javascripts/bootstrap.min.js +6 -0
- data/spec/dummy/app/assets/stylesheets/active_admin.css.scss +29 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap.min.css +727 -0
- data/spec/dummy/app/assets/stylesheets/ecm.sliders.css +9 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +7 -0
- data/spec/dummy/app/models/admin_user.rb +11 -0
- data/spec/dummy/app/views/layouts/application.html.erb +37 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +69 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/active_admin.rb +154 -0
- data/spec/dummy/config/initializers/active_admin_footer_patch.rb +12 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/devise.rb +232 -0
- data/spec/dummy/config/initializers/ecm_sliders.rb +39 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/de.yml +163 -0
- data/spec/dummy/config/locales/devise.en.yml +58 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +65 -0
- data/spec/dummy/db/migrate/20120922100801_create_ecm_sliders_sliders.ecm_sliders_engine.rb +20 -0
- data/spec/dummy/db/migrate/20120922100802_create_ecm_sliders_items.ecm_sliders_engine.rb +25 -0
- data/spec/dummy/db/migrate/20120922105221_devise_create_admin_users.rb +52 -0
- data/spec/dummy/db/migrate/20120922105247_create_admin_notes.rb +17 -0
- data/spec/dummy/db/migrate/20120922105248_move_admin_notes_to_comments.rb +25 -0
- data/spec/dummy/db/schema.rb +75 -0
- data/spec/dummy/lib/locale_generator.rb +194 -0
- data/spec/dummy/lib/tasks/stub_locales.rake +32 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/factories/ecm/sliders/items.rb +14 -0
- data/spec/factories/ecm/sliders/sliders.rb +10 -0
- data/spec/features/ecm/sliders/slider_items_admin_spec.rb +172 -0
- data/spec/features/ecm/sliders/sliders_admin_spec.rb +170 -0
- data/spec/files/ecm/sliders/items/example.png +0 -0
- data/spec/helpers/ecm/sliders_helper_spec.rb +36 -0
- data/spec/models/ecm/sliders/item_spec.rb +49 -0
- data/spec/models/ecm/sliders/slider_spec.rb +97 -0
- data/spec/models/generic_spec.rb +34 -0
- data/spec/requests/ecm/sliders/sliders_spec.rb +28 -0
- data/spec/routing/ecm/sliders/routes_spec.rb +11 -0
- data/spec/spec_helper.rb +38 -0
- data/spec/support/active_admin/sign_in_helper.rb +18 -0
- data/spec/support/capybara.rb +1 -0
- data/spec/support/factory_girl.rb +6 -0
- data/spec/support/ffaker.rb +1 -0
- data/spec/support/shoulda.rb +1 -0
- data/spec/views/ecm/sliders/sliders/index_spec.rb +20 -0
- metadata +344 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
class AdminUser < ActiveRecord::Base
|
2
|
+
# Include default devise modules. Others available are:
|
3
|
+
# :token_authenticatable, :confirmable,
|
4
|
+
# :lockable, :timeoutable and :omniauthable
|
5
|
+
devise :database_authenticatable,
|
6
|
+
:recoverable, :rememberable, :trackable, :validatable
|
7
|
+
|
8
|
+
# Setup accessible (or protected) attributes for your model
|
9
|
+
attr_accessible :email, :password, :password_confirmation, :remember_me
|
10
|
+
# attr_accessible :title, :body
|
11
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<%= stylesheet_link_tag "application", :media => "all" %>
|
6
|
+
<%= javascript_include_tag "application" %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
10
|
+
|
11
|
+
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
12
|
+
<!--[if lt IE 9]>
|
13
|
+
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
14
|
+
<![endif]-->
|
15
|
+
</head>
|
16
|
+
<body>
|
17
|
+
|
18
|
+
<div class="navbar">
|
19
|
+
<div class="navbar-inner">
|
20
|
+
<div class="container">
|
21
|
+
<a class="brand" href="#"><%= Rails.application.class.to_s.split("::").first %></a>
|
22
|
+
|
23
|
+
<div class="nav-collapse">
|
24
|
+
<ul class="nav">
|
25
|
+
<li class="active"><a href="<%= root_path %>">Home</a></li>
|
26
|
+
</ul>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<div class="container">
|
33
|
+
<%= yield %>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
</body>
|
37
|
+
</html>
|
@@ -0,0 +1,69 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_mailer/railtie"
|
7
|
+
require "active_resource/railtie"
|
8
|
+
require "sprockets/railtie"
|
9
|
+
# require "rails/test_unit/railtie"
|
10
|
+
|
11
|
+
Bundler.require
|
12
|
+
require "ecm_sliders"
|
13
|
+
require "active_admin"
|
14
|
+
|
15
|
+
module Dummy
|
16
|
+
class Application < Rails::Application
|
17
|
+
# Settings in config/environments/* take precedence over those specified here.
|
18
|
+
# Application configuration should go into files in config/initializers
|
19
|
+
# -- all .rb files in that directory are automatically loaded.
|
20
|
+
|
21
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
22
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
23
|
+
|
24
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
25
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
26
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
27
|
+
|
28
|
+
# Activate observers that should always be running.
|
29
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
30
|
+
|
31
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
32
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
33
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
34
|
+
config.time_zone = 'Europe/Berlin'
|
35
|
+
|
36
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
37
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
38
|
+
# config.i18n.default_locale = :de
|
39
|
+
config.i18n.available_locales = [ :de, :en ]
|
40
|
+
config.i18n.default_locale = :de
|
41
|
+
|
42
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
43
|
+
config.encoding = "utf-8"
|
44
|
+
|
45
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
46
|
+
config.filter_parameters += [:password]
|
47
|
+
|
48
|
+
# Enable escaping HTML in JSON.
|
49
|
+
config.active_support.escape_html_entities_in_json = true
|
50
|
+
|
51
|
+
# Use SQL instead of Active Record's schema dumper when creating the database.
|
52
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
53
|
+
# like if you have constraints or database-specific column types
|
54
|
+
# config.active_record.schema_format = :sql
|
55
|
+
|
56
|
+
# Enforce whitelist mode for mass assignment.
|
57
|
+
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
58
|
+
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
59
|
+
# parameters by using an attr_accessible or attr_protected declaration.
|
60
|
+
config.active_record.whitelist_attributes = true
|
61
|
+
|
62
|
+
# Enable the asset pipeline
|
63
|
+
config.assets.enabled = true
|
64
|
+
|
65
|
+
# Version of your assets, change this if you want to expire all your assets
|
66
|
+
config.assets.version = '1.0'
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3
|
3
|
+
#
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
+
# gem 'sqlite3'
|
6
|
+
development:
|
7
|
+
adapter: sqlite3
|
8
|
+
database: db/development.sqlite3
|
9
|
+
pool: 5
|
10
|
+
timeout: 5000
|
11
|
+
|
12
|
+
# Warning: The database defined as "test" will be erased and
|
13
|
+
# re-generated from your development database when you run "rake".
|
14
|
+
# Do not set this db to the same as development or production.
|
15
|
+
test:
|
16
|
+
adapter: sqlite3
|
17
|
+
database: db/test.sqlite3
|
18
|
+
pool: 5
|
19
|
+
timeout: 5000
|
20
|
+
|
21
|
+
production:
|
22
|
+
adapter: sqlite3
|
23
|
+
database: db/production.sqlite3
|
24
|
+
pool: 5
|
25
|
+
timeout: 5000
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Dummy::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
|
+
# Log error messages when you accidentally call methods on nil.
|
10
|
+
config.whiny_nils = true
|
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
|
+
# Only use best-standards-support built into browsers
|
23
|
+
config.action_dispatch.best_standards_support = :builtin
|
24
|
+
|
25
|
+
# Raise exception on mass assignment protection for Active Record models
|
26
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
+
|
28
|
+
# Log the query plan for queries taking more than this (works
|
29
|
+
# with SQLite, MySQL, and PostgreSQL)
|
30
|
+
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
31
|
+
|
32
|
+
# Do not compress assets
|
33
|
+
config.assets.compress = false
|
34
|
+
|
35
|
+
# Expands the lines which load the assets
|
36
|
+
config.assets.debug = true
|
37
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
Dummy::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
|
+
# Full error reports are disabled and caching is turned on
|
8
|
+
config.consider_all_requests_local = false
|
9
|
+
config.action_controller.perform_caching = true
|
10
|
+
|
11
|
+
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
+
config.serve_static_assets = false
|
13
|
+
|
14
|
+
# Compress JavaScripts and CSS
|
15
|
+
config.assets.compress = true
|
16
|
+
|
17
|
+
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
+
config.assets.compile = false
|
19
|
+
|
20
|
+
# Generate digests for assets URLs
|
21
|
+
config.assets.digest = true
|
22
|
+
|
23
|
+
# Defaults to nil and saved in location specified by config.assets.prefix
|
24
|
+
# config.assets.manifest = YOUR_PATH
|
25
|
+
|
26
|
+
# Specifies the header that your server uses for sending files
|
27
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
29
|
+
|
30
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
31
|
+
# config.force_ssl = true
|
32
|
+
|
33
|
+
# See everything in the log (default is :info)
|
34
|
+
# config.log_level = :debug
|
35
|
+
|
36
|
+
# Prepend all log lines with the following tags
|
37
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
38
|
+
|
39
|
+
# Use a different logger for distributed setups
|
40
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
41
|
+
|
42
|
+
# Use a different cache store in production
|
43
|
+
# config.cache_store = :mem_cache_store
|
44
|
+
|
45
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
46
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
47
|
+
|
48
|
+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
49
|
+
# config.assets.precompile += %w( search.js )
|
50
|
+
|
51
|
+
# Disable delivery errors, bad email addresses will be ignored
|
52
|
+
# config.action_mailer.raise_delivery_errors = false
|
53
|
+
|
54
|
+
# Enable threaded mode
|
55
|
+
# config.threadsafe!
|
56
|
+
|
57
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
58
|
+
# the I18n.default_locale when a translation can not be found)
|
59
|
+
config.i18n.fallbacks = true
|
60
|
+
|
61
|
+
# Send deprecation notices to registered listeners
|
62
|
+
config.active_support.deprecation = :notify
|
63
|
+
|
64
|
+
# Log the query plan for queries taking more than this (works
|
65
|
+
# with SQLite, MySQL, and PostgreSQL)
|
66
|
+
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
67
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
29
|
+
# ActionMailer::Base.deliveries array.
|
30
|
+
config.action_mailer.delivery_method = :test
|
31
|
+
|
32
|
+
# Raise exception on mass assignment protection for Active Record models
|
33
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
+
|
35
|
+
# Print deprecation notices to the stderr
|
36
|
+
config.active_support.deprecation = :stderr
|
37
|
+
end
|
@@ -0,0 +1,154 @@
|
|
1
|
+
I18n.available_locales = [:de, :en]
|
2
|
+
I18n.default_locale = :de
|
3
|
+
I18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}').to_s]
|
4
|
+
I18n.reload!
|
5
|
+
|
6
|
+
ActiveAdmin.setup do |config|
|
7
|
+
|
8
|
+
# == Site Title
|
9
|
+
#
|
10
|
+
# Set the title that is displayed on the main layout
|
11
|
+
# for each of the active admin pages.
|
12
|
+
#
|
13
|
+
config.site_title = "Dummy"
|
14
|
+
|
15
|
+
# Set the link url for the title. For example, to take
|
16
|
+
# users to your main site. Defaults to no link.
|
17
|
+
#
|
18
|
+
config.site_title_link = "/"
|
19
|
+
|
20
|
+
# Set an optional image to be displayed for the header
|
21
|
+
# instead of a string (overrides :site_title)
|
22
|
+
#
|
23
|
+
# Note: Recommended image height is 21px to properly fit in the header
|
24
|
+
#
|
25
|
+
# config.site_title_image = "/images/logo.png"
|
26
|
+
|
27
|
+
# == Default Namespace
|
28
|
+
#
|
29
|
+
# Set the default namespace each administration resource
|
30
|
+
# will be added to.
|
31
|
+
#
|
32
|
+
# eg:
|
33
|
+
# config.default_namespace = :hello_world
|
34
|
+
#
|
35
|
+
# This will create resources in the HelloWorld module and
|
36
|
+
# will namespace routes to /hello_world/*
|
37
|
+
#
|
38
|
+
# To set no namespace by default, use:
|
39
|
+
# config.default_namespace = false
|
40
|
+
#
|
41
|
+
# Default:
|
42
|
+
# config.default_namespace = :admin
|
43
|
+
#
|
44
|
+
# You can customize the settings for each namespace by using
|
45
|
+
# a namespace block. For example, to change the site title
|
46
|
+
# within a namespace:
|
47
|
+
#
|
48
|
+
# config.namespace :admin do |admin|
|
49
|
+
# admin.site_title = "Custom Admin Title"
|
50
|
+
# end
|
51
|
+
#
|
52
|
+
# This will ONLY change the title for the admin section. Other
|
53
|
+
# namespaces will continue to use the main "site_title" configuration.
|
54
|
+
|
55
|
+
# == User Authentication
|
56
|
+
#
|
57
|
+
# Active Admin will automatically call an authentication
|
58
|
+
# method in a before filter of all controller actions to
|
59
|
+
# ensure that there is a currently logged in admin user.
|
60
|
+
#
|
61
|
+
# This setting changes the method which Active Admin calls
|
62
|
+
# within the controller.
|
63
|
+
config.authentication_method = :authenticate_admin_user!
|
64
|
+
|
65
|
+
|
66
|
+
# == Current User
|
67
|
+
#
|
68
|
+
# Active Admin will associate actions with the current
|
69
|
+
# user performing them.
|
70
|
+
#
|
71
|
+
# This setting changes the method which Active Admin calls
|
72
|
+
# to return the currently logged in user.
|
73
|
+
config.current_user_method = :current_admin_user
|
74
|
+
|
75
|
+
|
76
|
+
# == Logging Out
|
77
|
+
#
|
78
|
+
# Active Admin displays a logout link on each screen. These
|
79
|
+
# settings configure the location and method used for the link.
|
80
|
+
#
|
81
|
+
# This setting changes the path where the link points to. If it's
|
82
|
+
# a string, the strings is used as the path. If it's a Symbol, we
|
83
|
+
# will call the method to return the path.
|
84
|
+
#
|
85
|
+
# Default:
|
86
|
+
config.logout_link_path = :destroy_admin_user_session_path
|
87
|
+
|
88
|
+
# This setting changes the http method used when rendering the
|
89
|
+
# link. For example :get, :delete, :put, etc..
|
90
|
+
#
|
91
|
+
# Default:
|
92
|
+
# config.logout_link_method = :get
|
93
|
+
|
94
|
+
# == Root
|
95
|
+
#
|
96
|
+
# Set the action to call for the root path. You can set different
|
97
|
+
# roots for each namespace.
|
98
|
+
#
|
99
|
+
# Default:
|
100
|
+
# config.root_to = 'dashboard#index'
|
101
|
+
|
102
|
+
# == Admin Comments
|
103
|
+
#
|
104
|
+
# Admin comments allow you to add comments to any model for admin use.
|
105
|
+
# Admin comments are enabled by default.
|
106
|
+
#
|
107
|
+
# Default:
|
108
|
+
# config.allow_comments = true
|
109
|
+
#
|
110
|
+
# You can turn them on and off for any given namespace by using a
|
111
|
+
# namespace config block.
|
112
|
+
#
|
113
|
+
# Eg:
|
114
|
+
# config.namespace :without_comments do |without_comments|
|
115
|
+
# without_comments.allow_comments = false
|
116
|
+
# end
|
117
|
+
|
118
|
+
|
119
|
+
# == Batch Actions
|
120
|
+
#
|
121
|
+
# Enable and disable Batch Actions
|
122
|
+
#
|
123
|
+
config.batch_actions = true
|
124
|
+
|
125
|
+
|
126
|
+
# == Controller Filters
|
127
|
+
#
|
128
|
+
# You can add before, after and around filters to all of your
|
129
|
+
# Active Admin resources from here.
|
130
|
+
#
|
131
|
+
# config.before_filter :do_something_awesome
|
132
|
+
|
133
|
+
|
134
|
+
# == Register Stylesheets & Javascripts
|
135
|
+
#
|
136
|
+
# We recommend using the built in Active Admin layout and loading
|
137
|
+
# up your own stylesheets / javascripts to customize the look
|
138
|
+
# and feel.
|
139
|
+
#
|
140
|
+
# To load a stylesheet:
|
141
|
+
# config.register_stylesheet 'my_stylesheet.css'
|
142
|
+
|
143
|
+
# You can provide an options hash for more control, which is passed along to stylesheet_link_tag():
|
144
|
+
# config.register_stylesheet 'my_print_stylesheet.css', :media => :print
|
145
|
+
#
|
146
|
+
# To load a javascript file:
|
147
|
+
# config.register_javascript 'my_javascript.js'
|
148
|
+
|
149
|
+
|
150
|
+
# == CSV options
|
151
|
+
#
|
152
|
+
# Set the CSV builder separator (default is ",")
|
153
|
+
# config.csv_column_separator = ','
|
154
|
+
end
|