Sha256: 26620cf5dba3969e974d02d695af68bbf6e7e4e765c800c9f2a7396c4a2d7663

Contents?: true

Size: 707 Bytes

Versions: 14

Compression:

Stored size: 707 Bytes

Contents

Lolita.setup do |config|
  #= More info about setup - https://github.com/ithouse/lolita/wiki/Lolita-setup
  #= More info about authentication - https://github.com/ithouse/lolita/wiki/Authorization-and-authentication
<% if defined?(Devise) && Devise.respond_to?(:mappings) && default_user_class = Devise.mappings.keys.first %>
  config.user_classes << <%= default_user_class.to_s.camelize %>
  config.authentication=:authenticate_<%= default_user_class %>!
<% else %>
  #= Sample config for Admin user managing Lolita
  # config.user_classes << Admin
  # config.authentication = :authenticate_admin!
<% end %>
  ## add this if you manage your authorization with CanCan
  # config.authorization = "CanCan"
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lolita-3.4.2 lib/generators/templates/lolita.rb
lolita-3.4.1 lib/generators/templates/lolita.rb
lolita-3.4.0 lib/generators/templates/lolita.rb
lolita-3.3.9 lib/generators/templates/lolita.rb
lolita-3.3.8 lib/generators/templates/lolita.rb
lolita-3.3.7 lib/generators/templates/lolita.rb
lolita-3.3.6 lib/generators/templates/lolita.rb
lolita-3.3.5 lib/generators/templates/lolita.rb
lolita-3.3.4 lib/generators/templates/lolita.rb
lolita-3.3.3 lib/generators/templates/lolita.rb
lolita-3.3.2 lib/generators/templates/lolita.rb
lolita-3.3.1 lib/generators/templates/lolita.rb
lolita-3.3.0 lib/generators/templates/lolita.rb
lolita-3.2.1 lib/generators/templates/lolita.rb