-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On destroy friendship callback #43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to make on_friendship_declined
?
@@ -15,7 +15,7 @@ Gem::Specification.new do |s| | |||
|
|||
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"] | |||
|
|||
s.add_dependency "rails", ['>= 4.0.0', '< 5.1.0'] | |||
s.add_dependency "rails", ['>= 4.0.0', '<= 5.1.0'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reasons for version constraint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure for this
@@ -17,10 +17,21 @@ def self.next_migration_number(path) | |||
|
|||
def create_migration_file | |||
migration_template 'create_friendships.rb', | |||
'db/migrate/create_friendships.rb' | |||
'db/migrate/create_friendships.rb', migration_version: migration_version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something required from Rails 5 and onwards? Could you link me to a source?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
end | ||
|
||
def rails5? | ||
Rails.version.start_with? '5' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method seems not future proof. It will stop working in Rails 6.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing in favor of #56 |
No description provided.