Sha256: 402c7f8dbfe503bb49b0b556e7cc77dcf525c72df101ed3370dc83f508aff48a
Contents?: true
Size: 1.19 KB
Versions: 10
Compression:
Stored size: 1.19 KB
Contents
module Rostra module Config # Helper method used to access current user in the view # mattr_accessor :deliver_emails_from @@deliver_emails_from = 'change_me@example.com' # Set the number of questions that will appear on each page. Applies to both the # questions index page (i.e. "recent questions" and "questions tagged with") # mattr_accessor :number_of_question_per_page @@number_of_question_per_page = 10 # Helper method used to access current user in the view # mattr_accessor :rostra_user @@rostra_user = :current_user # Method called on the rostra'd model (e.g. User) to access the users full name # mattr_accessor :rostra_user_name @@rostra_user_name = :name # Method called on the rostra'd model (e.g. User) to access the users email # mattr_accessor :rostra_user_email @@rostra_user_email = :email # Route to your login page # mattr_accessor :main_app_login_path @@main_app_login_path = :new_user_session_path # Route to your signup page # mattr_accessor :main_app_signup_path @@main_app_signup_path = :new_user_registration_path def self.setup yield self end end end
Version data entries
10 entries across 10 versions & 1 rubygems