lib/generators/active_admin/install/templates/active_admin.rb.erb in activeadmin-1.4.3 vs lib/generators/active_admin/install/templates/active_admin.rb.erb in activeadmin-2.0.0.rc1

- old
+ new

@@ -67,10 +67,15 @@ # In case you prefer Pundit over other solutions you can here pass # the name of default policy class. This policy will be used in every # case when Pundit is unable to find suitable policy. # config.pundit_default_policy = "MyDefaultPunditPolicy" + # If you wish to maintain a separate set of Pundit policies for admin + # resources, you may set a namespace here that Pundit will search + # within when looking for a resource's policy. + # config.pundit_policy_namespace = :admin + # You can customize your CanCan Ability class name here. # config.cancan_ability_class = "Ability" # You can specify a method to be called on unauthorized access. # This is necessary in order to prevent a redirect loop which happens @@ -117,11 +122,11 @@ # == Admin Comments # # This allows your users to comment on any resource registered with Active Admin. # # You can completely disable comments: - # config.comments = false + <% unless @skip_comments %># <% end %>config.comments = false # # You can change the name under which comments are registered: # config.comments_registration_name = 'AdminComment' # # You can change the order for the comments and you can change the column @@ -145,10 +150,17 @@ # You can add before, after and around filters to all of your # Active Admin resources and pages from here. # # config.before_action :do_something_awesome + # == Attribute Filters + # + # You can exclude possibly sensitive model attributes from being displayed, + # added to forms, or exported by default by ActiveAdmin + # + config.filter_attributes = [:encrypted_password, :password, :password_confirmation] + # == Localize Date/Time Format # # Set the localize format to display dates and times. # To understand how to localize your app with I18n, read more at # https://github.com/svenfuchs/i18n/blob/master/lib%2Fi18n%2Fbackend%2Fbase.rb#L52 @@ -274,9 +286,16 @@ # that every record will be loaded for each association. # You can enabled or disable the inclusion # of those filters by default here. # # config.include_default_association_filters = true + + # == Head + # + # You can add your own content to the site head like analytics. Make sure + # you only pass content you trust. + # + # config.head = ''.html_safe # == Footer # # By default, the footer shows the current Active Admin version. You can # override the content of the footer here.