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