Sha256: b7098160470d5a41ed876684c89437ec364e5620c249929ea18e702b1a27590d
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
# Use this setup block to configure all options available in Rostra. Rostra::Config.setup do |config| # Helper method used to access current user in the view # config.deliver_emails_from = 'change_me@example.com' # Helper method used to access current user in the view # config.rostra_user = :current_user # Method called on the rostra'd model (e.g. User) to access the users full name # config.rostra_user_name = :name # Method called on the rostra'd model (e.g. User) to access the users email address # config.rostra_user_email = :email # Method called on the rostra'd model (e.g. User) to access the users avatar. It # looks for an avatar in this order: # # 1. Calls the method defined here # 2. Uses the users email address to looks for a gravatar # 3. Renders <tt>app/assets/images/rostra/anonymous_avatar.png</tt> # # config.rostra_user_avatar = :avatar # Route to your login page # config.main_app_login_path = :new_user_session_path # Route to your signup page # config.main_app_signup_path = :new_user_registration_path end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rostra-0.0.9 | lib/generators/rostra/templates/config/initializers/rostra.rb |