Sha256: f19f1a70ca8cf3353bbf9c01adfa7af720c5395822ced90179faa88603e78b14
Contents?: true
Size: 566 Bytes
Versions: 6
Compression:
Stored size: 566 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? <% if defined?(Devise) %> <% default_user_class = Devise.mappings.keys.first %> config.user_classes << <%= default_user_class.to_s.camelize %> config.authentication=:authenticate_<%= default_user_class %>! <% end %> end
Version data entries
6 entries across 6 versions & 1 rubygems