Sha256: 9abe7294ff1bfe2eadcf13ff0685cf70f8bef9d13c0028a559b96ff6e356f30f

Contents?: true

Size: 538 Bytes

Versions: 19

Compression:

Stored size: 538 Bytes

Contents

Lolita.setup do |config|
  # ==> User and authentication configuration
  # Add one or more of your user classes to Lolita
  # config.user_classes << MyUser
  
  # 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)
  # }
  
  <% if defined?(Devise) %>
    config.user_classes << User
    config.authentication=:authenticate_user!
  <% end %>
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
lolita-3.1.14 lib/generators/templates/lolita.rb
lolita-3.1.13 lib/generators/templates/lolita.rb
lolita-3.1.12 lib/generators/templates/lolita.rb
lolita-3.1.11 lib/generators/templates/lolita.rb
lolita-3.1.9 lib/generators/templates/lolita.rb
lolita-3.1.8 lib/generators/templates/lolita.rb
lolita-3.1.7 lib/generators/templates/lolita.rb
lolita-3.1.6 lib/generators/templates/lolita.rb
lolita-3.1.5 lib/generators/templates/lolita.rb
lolita-3.1.4 lib/generators/templates/lolita.rb
lolita-3.1.3 lib/generators/templates/lolita.rb
lolita-3.1.2 lib/generators/templates/lolita.rb
lolita-3.1.1 lib/generators/templates/lolita.rb
lolita-3.1.0 lib/generators/templates/lolita.rb
lolita-3.0.7 lib/generators/templates/lolita.rb
lolita-3.0.6 lib/generators/templates/lolita.rb
lolita-3.0.5 lib/generators/templates/lolita.rb
lolita-3.0.4 lib/generators/templates/lolita.rb
lolita-3.0.3 lib/generators/templates/lolita.rb