Sha256: 7a5afde14f1f11abad157a1de0a1a3462e8f745fa4addf8873b05dc7987cd10b
Contents?: true
Size: 970 Bytes
Versions: 5
Compression:
Stored size: 970 Bytes
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.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
5 entries across 5 versions & 1 rubygems