Remove rails_admin

This is now broken since more than half a year, so I think we can just
remove it.

Podmins shouldn't use this anyway, because it does bad things, like
replacing NULL with an empty string when editing something. If we really
need an admin interface for something, we should add it to our own admin
panel at /admins/dashboard.

Fixes #7027 and #6413

closes #7440
parent 23d3d9dc
# 0.6.6.0
## Refactor
* Remove rails\_admin [#7440](https://github.com/diaspora/diaspora/pull/7440)
## Bug fixes
* Make photo upload button hover text translatable [#7429](https://github.com/diaspora/diaspora/pull/7429)
......
......@@ -217,10 +217,6 @@ gem "thor", "0.19.1"
# gem "therubyracer", :platform => :ruby
group :production do # we don"t install these on travis to speed up test runs
# Administration
gem "rails_admin", "0.8.1"
# Analytics
gem "rack-google-analytics", "1.2.0"
......
......@@ -104,13 +104,6 @@ GEM
chunky_png (1.3.8)
cliver (0.3.2)
coderay (1.1.1)
coffee-rails (4.2.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.2.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
compass (1.0.3)
chunky_png (~> 1.2)
compass-core (~> 1.0.2)
......@@ -236,8 +229,6 @@ GEM
fog-xml (0.1.2)
fog-core
nokogiri (~> 1.5, >= 1.5.11)
font-awesome-rails (4.7.0.1)
railties (>= 3.2, < 5.1)
formatador (0.2.5)
fuubar (2.2.0)
rspec-core (~> 3.0)
......@@ -347,9 +338,6 @@ GEM
jsonpath (0.5.8)
multi_json
jwt (1.5.6)
kaminari (0.17.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
kgio (2.11.0)
leaflet-rails (0.7.7)
listen (3.1.5)
......@@ -390,7 +378,6 @@ GEM
mysql2 (0.4.5)
naught (1.1.0)
nenv (0.3.0)
nested_form (0.3.2)
nio4r (2.0.0)
nokogiri (1.7.1)
mini_portile2 (~> 2.1.0)
......@@ -492,9 +479,6 @@ GEM
multi_json (>= 1.3.6)
rack (>= 1.1)
rack-piwik (0.3.0)
rack-pjax (0.8.0)
nokogiri (~> 1.5)
rack (~> 1.1)
rack-protection (1.5.3)
rack
rack-rewrite (1.5.1)
......@@ -571,20 +555,6 @@ GEM
rails-timeago (2.16.0)
actionpack (>= 3.1)
activesupport (>= 3.1)
rails_admin (0.8.1)
builder (~> 3.1)
coffee-rails (~> 4.0)
font-awesome-rails (>= 3.0, < 5)
haml (~> 4.0)
jquery-rails (>= 3.0, < 5)
jquery-ui-rails (~> 5.0)
kaminari (~> 0.14)
nested_form (~> 0.3)
rack-pjax (~> 0.7)
rails (~> 4.0)
remotipart (~> 1.0)
safe_yaml (~> 1.0)
sass-rails (>= 4.0, < 6)
railties (4.2.8)
actionpack (= 4.2.8)
activesupport (= 4.2.8)
......@@ -600,7 +570,6 @@ GEM
redis (3.3.3)
redis-namespace (1.5.3)
redis (~> 3.0, >= 3.0.4)
remotipart (1.3.1)
request_store (1.3.2)
responders (2.3.0)
railties (>= 4.2.0, < 5.1)
......@@ -887,7 +856,6 @@ DEPENDENCIES
rails-assets-perfect-scrollbar (= 0.6.16)!
rails-i18n (= 4.0.8)
rails-timeago (= 2.16.0)
rails_admin (= 0.8.1)
rb-fsevent (= 0.9.8)
rb-inotify (= 0.9.8)
redcarpet (= 3.4.0)
......
# RailsAdmin config file. Generated on March 24, 2012 15:34
# See github.com/sferik/rails_admin for more informations
if Rails.env.production?
# Recommended way to deal with Kaminari vs. WillPaginate issues
if defined?(WillPaginate)
Kaminari.configure do |config|
config.page_method_name = :per_page_kaminari
end
end
RailsAdmin.config do |config|
config.authorize_with do
redirect_to main_app.root_path unless current_user.try(:admin?)
end
# If your default_local is different from :en, uncomment the following 2 lines and set your default locale here:
# require 'i18n'
# I18n.default_locale = :de
config.current_user_method { current_user } # auto-generated
# If you want to track changes on your models:
# config.audit_with :history, User
# Or with a PaperTrail: (you need to install it first)
# config.audit_with :paper_trail, User
# Set the admin name here (optional second array element will appear in a beautiful RailsAdmin red ©)
config.main_app_name = ['Diaspora', 'Admin']
# or for a dynamic name:
# config.main_app_name = Proc.new { |controller| [Rails.application.engine_name.titleize, controller.params['action'].titleize] }
# ==> Global show view settings
# Display empty fields in show views
# config.compact_show_view = false
# ==> Global list view settings
# Number of default rows per-page:
# config.default_items_per_page = 20
# ==> Included models
# Add all excluded models here:
#config.excluded_models = []
# Add models here if you want to go 'whitelist mode':
config.included_models = %w[
AccountDeletion
Aspect
AspectMembership
Block
Comment
Contact
Conversation
Invitation
InvitationCode
Like
Location
Mention
Message
OEmbedCache
OpenGraphCache
Person
Photo
Profile
Pod
Poll
PollAnswer
Post
Profile
Report
Reshare
Role
Service
StatusMessage
User
UserPreference
]
# Application wide tried label methods for models' instances
# config.label_methods << :description # Default is [:name, :title]
# ==> Global models configuration
# config.models do
# # Configuration here will affect all included models in all scopes, handle with care!
#
# list do
# # Configuration here will affect all included models in list sections (same for show, export, edit, update, create)
#
# fields_of_type :date do
# # Configuration here will affect all date fields, in the list section, for all included models. See README for a comprehensive type list.
# end
# end
# end
#
# ==> Model specific configuration
# Keep in mind that *all* configuration blocks are optional.
# RailsAdmin will try his best to provide the best defaults for each section, for each field.
# Try to override as few things as possible, in the most generic way. Try to avoid setting labels for models and attributes, use ActiveRecord I18n API instead.
# Less code is better code!
# config.model MyModel do
# # Cross-section field configuration
# object_label_method :name # Name of the method called for pretty printing an *instance* of ModelName
# label 'My model' # Name of ModelName (smartly defaults to ActiveRecord's I18n API)
# label_plural 'My models' # Same, plural
# weight -1 # Navigation priority. Bigger is higher.
# parent OtherModel # Set parent model for navigation. MyModel will be nested below. OtherModel will be on first position of the dropdown
# navigation_label # Sets dropdown entry's name in navigation. Only for parents!
# # Section specific configuration:
# list do
# filters [:id, :name] # Array of field names which filters should be shown by default in the table header
# items_per_page 100 # Override default_items_per_page
# sort_by :id # Sort column (default is primary key)
# sort_reverse true # Sort direction (default is true for primary key, last created first)
# # Here goes the fields configuration for the list view
# end
# end
# Your model's configuration, to help you get started:
# All fields marked as 'hidden' won't be shown anywhere in the rails_admin unless you mark them as visible. (visible(true))
# config.model AccountDeletion do
# # Found associations:
# configure :person, :belongs_to_association # # Found columns:
# configure :id, :integer
# configure :diaspora_handle, :string
# configure :person_id, :integer # Hidden # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model ActsAsTaggableOn::Tag do
# # Found associations:
# configure :taggings, :has_many_association # Hidden # # Found columns:
# configure :id, :integer
# configure :name, :string # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Aspect do
# # Found associations:
# configure :user, :belongs_to_association
# configure :aspect_memberships, :has_many_association
# configure :contacts, :has_many_association
# configure :aspect_visibilities, :has_many_association
# configure :posts, :has_many_association
# configure :photos, :has_many_association # # Found columns:
# configure :id, :integer
# configure :name, :string
# configure :user_id, :integer # Hidden
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :contacts_visible, :boolean
# configure :order_id, :integer # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model AspectMembership do
# # Found associations:
# configure :aspect, :belongs_to_association
# configure :contact, :belongs_to_association
# configure :user, :has_one_association
# configure :person, :has_one_association # # Found columns:
# configure :id, :integer
# configure :aspect_id, :integer # Hidden
# configure :contact_id, :integer # Hidden
# configure :created_at, :datetime
# configure :updated_at, :datetime # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model AspectVisibility do
# # Found associations:
# configure :shareable, :polymorphic_association
# configure :aspect, :belongs_to_association # # Found columns:
# configure :id, :integer
# configure :shareable_id, :integer # Hidden
# configure :shareable_type, :string # Hidden
# configure :aspect_id, :integer # Hidden
# configure :created_at, :datetime
# configure :updated_at, :datetime # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Block do
# # Found associations:
# configure :user, :belongs_to_association
# configure :person, :belongs_to_association # # Found columns:
# configure :id, :integer
# configure :user_id, :integer # Hidden
# configure :person_id, :integer # Hidden # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Comment do
# # Found associations:
# configure :commentable, :polymorphic_association
# configure :author, :belongs_to_association
# configure :likes, :has_many_association
# configure :dislikes, :has_many_association
# configure :taggings, :has_many_association # Hidden
# configure :base_tags, :has_many_association
# configure :tag_taggings, :has_many_association # Hidden
# configure :tags, :has_many_association # # Found columns:
# configure :id, :integer
# configure :text, :text
# configure :commentable_id, :integer # Hidden
# configure :commentable_type, :string # Hidden
# configure :author_id, :integer # Hidden
# configure :guid, :string
# configure :author_signature, :text
# configure :parent_author_signature, :text
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :likes_count, :integer # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Contact do
# # Found associations:
# configure :user, :belongs_to_association
# configure :person, :belongs_to_association
# configure :aspect_memberships, :has_many_association
# configure :aspects, :has_many_association
# configure :share_visibilities, :has_many_association
# configure :posts, :has_many_association # # Found columns:
# configure :id, :integer
# configure :user_id, :integer # Hidden
# configure :person_id, :integer # Hidden
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :sharing, :boolean
# configure :receiving, :boolean # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Conversation do
# # Found associations:
# configure :author, :belongs_to_association
# configure :conversation_visibilities, :has_many_association
# configure :participants, :has_many_association
# configure :messages, :has_many_association # # Found columns:
# configure :id, :integer
# configure :subject, :string
# configure :guid, :string
# configure :author_id, :integer # Hidden
# configure :created_at, :datetime
# configure :updated_at, :datetime # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model ConversationVisibility do
# # Found associations:
# configure :conversation, :belongs_to_association
# configure :person, :belongs_to_association # # Found columns:
# configure :id, :integer
# configure :conversation_id, :integer # Hidden
# configure :person_id, :integer # Hidden
# configure :unread, :integer
# configure :created_at, :datetime
# configure :updated_at, :datetime # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Invitation do
# # Found associations:
# configure :sender, :belongs_to_association
# configure :recipient, :belongs_to_association
# configure :aspect, :belongs_to_association # # Found columns:
# configure :id, :integer
# configure :message, :text
# configure :sender_id, :integer # Hidden
# configure :recipient_id, :integer # Hidden
# configure :aspect_id, :integer # Hidden
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :service, :string
# configure :identifier, :string
# configure :admin, :boolean
# configure :language, :string # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model InvitationCode do
# # Found associations:
# configure :user, :belongs_to_association # # Found columns:
# configure :id, :integer
# configure :token, :string
# configure :user_id, :integer # Hidden
# configure :count, :integer
# configure :created_at, :datetime
# configure :updated_at, :datetime # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Like do
# # Found associations:
# configure :target, :polymorphic_association
# configure :author, :belongs_to_association # # Found columns:
# configure :id, :integer
# configure :positive, :boolean
# configure :target_id, :integer # Hidden
# configure :target_type, :string # Hidden
# configure :author_id, :integer # Hidden
# configure :guid, :string
# configure :author_signature, :text
# configure :parent_author_signature, :text
# configure :created_at, :datetime
# configure :updated_at, :datetime # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Mention do
# # Found associations:
# configure :post, :belongs_to_association
# configure :person, :belongs_to_association # # Found columns:
# configure :id, :integer
# configure :post_id, :integer # Hidden
# configure :person_id, :integer # Hidden # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Message do
# # Found associations:
# configure :conversation, :belongs_to_association
# configure :author, :belongs_to_association # # Found columns:
# configure :id, :integer
# configure :conversation_id, :integer # Hidden
# configure :author_id, :integer # Hidden
# configure :guid, :string
# configure :text, :text
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :author_signature, :text
# configure :parent_author_signature, :text # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Notification do
# # Found associations:
# configure :target, :polymorphic_association
# configure :recipient, :belongs_to_association
# configure :notification_actors, :has_many_association
# configure :actors, :has_many_association # # Found columns:
# configure :id, :integer
# configure :target_type, :string # Hidden
# configure :target_id, :integer # Hidden
# configure :recipient_id, :integer # Hidden
# configure :unread, :boolean
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :type, :string # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model NotificationActor do
# # Found associations:
# configure :notification, :belongs_to_association
# configure :person, :belongs_to_association # # Found columns:
# configure :id, :integer
# configure :notification_id, :integer # Hidden
# configure :person_id, :integer # Hidden
# configure :created_at, :datetime
# configure :updated_at, :datetime # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Notifications::AlsoCommented do
# # Found associations:
# configure :target, :polymorphic_association
# configure :recipient, :belongs_to_association
# configure :notification_actors, :has_many_association
# configure :actors, :has_many_association # # Found columns:
# configure :id, :integer
# configure :target_type, :string # Hidden
# configure :target_id, :integer # Hidden
# configure :recipient_id, :integer # Hidden
# configure :unread, :boolean
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :type, :string # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Notifications::CommentOnPost do
# # Found associations:
# configure :target, :polymorphic_association
# configure :recipient, :belongs_to_association
# configure :notification_actors, :has_many_association
# configure :actors, :has_many_association # # Found columns:
# configure :id, :integer
# configure :target_type, :string # Hidden
# configure :target_id, :integer # Hidden
# configure :recipient_id, :integer # Hidden
# configure :unread, :boolean
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :type, :string # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Notifications::Liked do
# # Found associations:
# configure :target, :polymorphic_association
# configure :recipient, :belongs_to_association
# configure :notification_actors, :has_many_association
# configure :actors, :has_many_association # # Found columns:
# configure :id, :integer
# configure :target_type, :string # Hidden
# configure :target_id, :integer # Hidden
# configure :recipient_id, :integer # Hidden
# configure :unread, :boolean
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :type, :string # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Notifications::Mentioned do
# # Found associations:
# configure :target, :polymorphic_association
# configure :recipient, :belongs_to_association
# configure :notification_actors, :has_many_association
# configure :actors, :has_many_association # # Found columns:
# configure :id, :integer
# configure :target_type, :string # Hidden
# configure :target_id, :integer # Hidden
# configure :recipient_id, :integer # Hidden
# configure :unread, :boolean
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :type, :string # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Notifications::PrivateMessage do
# # Found associations:
# configure :target, :polymorphic_association
# configure :recipient, :belongs_to_association
# configure :notification_actors, :has_many_association
# configure :actors, :has_many_association # # Found columns:
# configure :id, :integer
# configure :target_type, :string # Hidden
# configure :target_id, :integer # Hidden
# configure :recipient_id, :integer # Hidden
# configure :unread, :boolean
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :type, :string # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Notifications::RequestAccepted do
# # Found associations:
# configure :target, :polymorphic_association
# configure :recipient, :belongs_to_association
# configure :notification_actors, :has_many_association
# configure :actors, :has_many_association # # Found columns:
# configure :id, :integer
# configure :target_type, :string # Hidden
# configure :target_id, :integer # Hidden
# configure :recipient_id, :integer # Hidden
# configure :unread, :boolean
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :type, :string # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Notifications::Reshared do
# # Found associations:
# configure :target, :polymorphic_association
# configure :recipient, :belongs_to_association
# configure :notification_actors, :has_many_association
# configure :actors, :has_many_association # # Found columns:
# configure :id, :integer
# configure :target_type, :string # Hidden
# configure :target_id, :integer # Hidden
# configure :recipient_id, :integer # Hidden
# configure :unread, :boolean
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :type, :string # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Notifications::StartedSharing do
# # Found associations:
# configure :target, :polymorphic_association
# configure :recipient, :belongs_to_association
# configure :notification_actors, :has_many_association
# configure :actors, :has_many_association # # Found columns:
# configure :id, :integer
# configure :target_type, :string # Hidden
# configure :target_id, :integer # Hidden
# configure :recipient_id, :integer # Hidden
# configure :unread, :boolean
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :type, :string # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model OEmbedCache do
# # Found associations:
# configure :posts, :has_many_association # # Found columns:
# configure :id, :integer
# configure :url, :string
# configure :data, :serialized # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Participation do
# # Found associations:
# configure :target, :polymorphic_association
# configure :author, :belongs_to_association # # Found columns:
# configure :id, :integer
# configure :guid, :string
# configure :target_id, :integer # Hidden
# configure :target_type, :string # Hidden
# configure :author_id, :integer # Hidden
# configure :author_signature, :text
# configure :parent_author_signature, :text
# configure :created_at, :datetime
# configure :updated_at, :datetime # # Sections:
# list do; end
# export do; end
# show do; end
# edit do; end
# create do; end
# update do; end
# end
# config.model Person do
# # Found associations:
# configure :owner, :belongs_to_association
# configure :profile, :has_one_association
# configure :contacts, :has_many_association
# configure :posts, :has_many_association
# configure :photos, :has_many_association
# configure :comments, :has_many_association
# configure :participations, :has_many_association
# configure :notification_actors, :has_many_association
# configure :notifications, :has_many_association
# configure :mentions, :has_many_association # # Found columns:
# configure :id, :integer
# configure :guid, :string
# configure :url, :text
# configure :diaspora_handle, :string
# configure :serialized_public_key, :text
# configure :owner_id, :integer # Hidden
# configure :created_at, :datetime
# configure :updated_at, :datetime
# configure :closed_account, :boolean # # Sections:
# list do; end
# export do; end
# show do; end