rostra 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/models/rostra/question.rb +2 -2
- data/app/views/rostra/application_mailer/notification.html.erb +1 -1
- data/app/views/rostra/questions/index.html.erb +1 -0
- data/lib/generators/rostra/templates/config/initializers/rostra.rb +1 -1
- data/lib/rostra/config.rb +1 -1
- data/lib/rostra/version.rb +1 -1
- data/lib/rostra.rb +1 -1
- metadata +2 -2
| @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            module Rostra
         | 
| 2 2 | 
             
              class Question < ActiveRecord::Base
         | 
| 3 3 | 
             
                belongs_to :user
         | 
| 4 | 
            -
                has_many :answers
         | 
| 5 | 
            -
                has_many :question_followings
         | 
| 4 | 
            +
                has_many :answers, :dependent => :destroy
         | 
| 5 | 
            +
                has_many :question_followings, :dependent => :destroy
         | 
| 6 6 | 
             
                has_many :followers, through: :question_followings, source: :user
         | 
| 7 7 | 
             
                has_many :notified_followers, through: :question_followings, source: :user,
         | 
| 8 8 | 
             
                  conditions: { 'rostra_question_followings.send_email_notifications' => true }
         | 
| @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            # Use this setup block to configure all options available in Rostra.
         | 
| 2 2 | 
             
            Rostra::Config.setup do |config|
         | 
| 3 3 |  | 
| 4 | 
            -
              #  | 
| 4 | 
            +
              # Specify the email layout you'd like to use when sending notifications
         | 
| 5 5 | 
             
              # config.email_layout = nil
         | 
| 6 6 |  | 
| 7 7 | 
             
              # Helper method used to access current user in the view
         | 
    
        data/lib/rostra/config.rb
    CHANGED
    
    
    
        data/lib/rostra/version.rb
    CHANGED
    
    
    
        data/lib/rostra.rb
    CHANGED
    
    | @@ -21,7 +21,7 @@ module Rostra | |
| 21 21 | 
             
                    has_many :questions, class_name: 'Rostra::Question'
         | 
| 22 22 | 
             
                    has_many :answers, class_name: 'Rostra::Answer'
         | 
| 23 23 | 
             
                    has_many :comments
         | 
| 24 | 
            -
                    has_many :question_followings, class_name: 'Rostra::QuestionFollowing'
         | 
| 24 | 
            +
                    has_many :question_followings, class_name: 'Rostra::QuestionFollowing', :dependent => :destroy
         | 
| 25 25 | 
             
                    has_many :followed_questions, through: :question_followings, class_name: 'Rostra::Question', source: :question
         | 
| 26 26 |  | 
| 27 27 | 
             
                    acts_as_voter
         | 
    
        metadata
    CHANGED
    
    | @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            name: rostra
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 4 | 
             
              prerelease: 
         | 
| 5 | 
            -
              version: 0.1. | 
| 5 | 
            +
              version: 0.1.9
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors: 
         | 
| 8 8 | 
             
            - Cory Schires
         | 
| @@ -10,7 +10,7 @@ autorequire: | |
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 12 |  | 
| 13 | 
            -
            date: 2011-10- | 
| 13 | 
            +
            date: 2011-10-27 00:00:00 -05:00
         | 
| 14 14 | 
             
            default_executable: 
         | 
| 15 15 | 
             
            dependencies: 
         | 
| 16 16 | 
             
            - !ruby/object:Gem::Dependency 
         |