Sha256: 445b5c77b9f8d0578b6ee95b6399af8b41159bd0cc555f0b92561c99396f65cc
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 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) # } I18n.backend = Lolita::I18n.load Redis.new(:db => 11) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lolita-i18n-0.1.3 | spec/rails_app/config/initializers/lolita_i18n.rb |