Sha256: 64c7aa1a0f00c7673717a9ea848405ac8a220fc553f50df5354ce08d6d109ec1
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
module Rostra module Config # Helper method used to access current user in the view # mattr_accessor :email_layout @@email_layout = nil # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rostra-0.1.8 | lib/rostra/config.rb |