Class: MessageTrain::Configuration
- Inherits:
-
Object
- Object
- MessageTrain::Configuration
- Defined in:
- lib/message_train/configuration.rb
Instance Attribute Summary collapse
-
#address_book_method ⇒ Object
Returns the value of attribute address_book_method.
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#friendly_id_tables ⇒ Object
Returns the value of attribute friendly_id_tables.
-
#name_columns ⇒ Object
Returns the value of attribute name_columns.
-
#recipient_tables ⇒ Object
Returns the value of attribute recipient_tables.
-
#slug_columns ⇒ Object
Returns the value of attribute slug_columns.
-
#user_route_authentication_method ⇒ Object
Returns the value of attribute user_route_authentication_method.
-
#user_sign_in_path ⇒ Object
Returns the value of attribute user_sign_in_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/message_train/configuration.rb', line 23 def initialize self.friendly_id_tables = [] self.recipient_tables = [ :users ] self.slug_columns = { users: :slug } self.name_columns = { users: :display_name } self.current_user_method = :current_user self.user_sign_in_path = '/users/sign_in' self.user_route_authentication_method = :user self.address_book_method = :address_book end |
Instance Attribute Details
#address_book_method ⇒ Object
Returns the value of attribute address_book_method.
14 15 16 |
# File 'lib/message_train/configuration.rb', line 14 def address_book_method @address_book_method end |
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
14 15 16 |
# File 'lib/message_train/configuration.rb', line 14 def current_user_method @current_user_method end |
#friendly_id_tables ⇒ Object
Returns the value of attribute friendly_id_tables.
14 15 16 |
# File 'lib/message_train/configuration.rb', line 14 def friendly_id_tables @friendly_id_tables end |
#name_columns ⇒ Object
Returns the value of attribute name_columns.
14 15 16 |
# File 'lib/message_train/configuration.rb', line 14 def name_columns @name_columns end |
#recipient_tables ⇒ Object
Returns the value of attribute recipient_tables.
14 15 16 |
# File 'lib/message_train/configuration.rb', line 14 def recipient_tables @recipient_tables end |
#slug_columns ⇒ Object
Returns the value of attribute slug_columns.
14 15 16 |
# File 'lib/message_train/configuration.rb', line 14 def slug_columns @slug_columns end |
#user_route_authentication_method ⇒ Object
Returns the value of attribute user_route_authentication_method.
14 15 16 |
# File 'lib/message_train/configuration.rb', line 14 def user_route_authentication_method @user_route_authentication_method end |
#user_sign_in_path ⇒ Object
Returns the value of attribute user_sign_in_path.
14 15 16 |
# File 'lib/message_train/configuration.rb', line 14 def user_sign_in_path @user_sign_in_path end |