Merge branch 'develop' of github.com:diaspora/diaspora into develop

This commit is contained in:
Jonne Haß 2013-12-02 00:01:02 +01:00
commit b39b0f05d0

View file

@ -1,13 +1,13 @@
# 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)
# 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|
end
RailsAdmin.config do |config|
config.authorize_with do
redirect_to main_app.root_path unless current_user.try(:admin?)
end
@ -40,7 +40,7 @@ RailsAdmin.config do |config|
# ==> Included models
# Add all excluded models here:
config.excluded_models = [AspectMembership, AspectVisibility, ShareVisibility, ConversationVisibility, NotificationActor, Notifications::AlsoCommented, Notifications::CommentOnPost, Notifications::Liked, Notifications::Mentioned, Notifications::PrivateMessage, Notifications::RequestAccepted, Notifications::Reshared, Notifications::StartedSharing, Reshare, Services::Facebook, Services::Tumblr, Services::Twitter, UserPreference]
config.excluded_models = [AspectMembership, AspectVisibility, ShareVisibility, ConversationVisibility, NotificationActor, Notifications::AlsoCommented, Notifications::CommentOnPost, Notifications::Liked, Notifications::Mentioned, Notifications::PrivateMessage, Notifications::RequestAccepted, Notifications::Reshared, Notifications::StartedSharing, Reshare, Services::Facebook, Services::Tumblr, Services::Twitter, UserPreference, ActsAsTaggableOn::Tag]
# Add models here if you want to go 'whitelist mode':
# config.included_models = [AccountDeletion, ActsAsTaggableOn::Tag, Aspect, AspectMembership, AspectVisibility, Block, Comment, Contact, Conversation, ConversationVisibility, Invitation, InvitationCode, Like, Mention, Message, Notification, NotificationActor, Notifications::AlsoCommented, Notifications::CommentOnPost, Notifications::Liked, Notifications::Mentioned, Notifications::PrivateMessage, Notifications::RequestAccepted, Notifications::Reshared, Notifications::StartedSharing, OEmbedCache, Participation, Person, Photo, Pod, Post, Profile, Reshare, Service, ServiceUser, Services::Facebook, Services::Tumblr, Services::Twitter, ShareVisibility, StatusMessage, TagFollowing, User, UserPreference]
@ -1058,5 +1058,5 @@ RailsAdmin.config do |config|
# create do; end
# update do; end
# end
end
end
end