Sha256: 3694a8d9c29d9e40b38db3f42f4c94cdc92c42b97c048ef691cdbe467ea2dc7f
Contents?: true
Size: 499 Bytes
Versions: 5
Compression:
Stored size: 499 Bytes
Contents
Lolita.setup do |config| # ==> User and authentication configuration # Add one or more of your user classes to Lolita # config.user_classes << MyUser # config.authentication = :authenticate_user! # Define authentication for Lolita controllers. # Call some of your own methods # config.authentication=:is_admin? # Or use some customized logic # config.authentication={ # current_user.is_a?(Admin) || current_user.has_role?(:admin) # } config.i18n.store = {:db => 11} end
Version data entries
5 entries across 5 versions & 1 rubygems