Sha256: 731e320bad5812aa4912d3bc6e11e4d5529bcadda492e00c122e8793b5777680

Contents?: true

Size: 1.31 KB

Versions: 25

Compression:

Stored size: 1.31 KB

Contents

module Rostra
  module Config

    # The email layout used when sending notifications
    #
    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

25 entries across 25 versions & 1 rubygems

Version Path
rostra-0.3.6 lib/rostra/config.rb
rostra-0.3.5 lib/rostra/config.rb
rostra-0.3.4 lib/rostra/config.rb
rostra-0.3.3 lib/rostra/config.rb
rostra-0.3.2 lib/rostra/config.rb
rostra-0.3.1 lib/rostra/config.rb
rostra-0.2.1 lib/rostra/config.rb
rostra-0.2.0 lib/rostra/config.rb
rostra-0.1.26 lib/rostra/config.rb
rostra-0.1.25 lib/rostra/config.rb
rostra-0.1.24 lib/rostra/config.rb
rostra-0.1.23 lib/rostra/config.rb
rostra-0.1.22 lib/rostra/config.rb
rostra-0.1.21 lib/rostra/config.rb
rostra-0.1.20 lib/rostra/config.rb
rostra-0.1.19 lib/rostra/config.rb
rostra-0.1.18 lib/rostra/config.rb
rostra-0.1.17 lib/rostra/config.rb
rostra-0.1.16 lib/rostra/config.rb
rostra-0.1.15 lib/rostra/config.rb