Skip to content
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

Closed
wants to merge 7 commits into from
Closed

Conversation

temkin
Copy link

@temkin temkin commented May 10, 2017

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 99.413% when pulling e8034a5 on temkin:master into 83368e8 on sungwoncho:master.

Copy link
Collaborator

@sungwoncho sungwoncho left a 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']
Copy link
Collaborator

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?

Copy link
Author

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
Copy link
Collaborator

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?

Copy link
Author

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'
Copy link
Collaborator

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chevinbrown
Copy link
Contributor

@temkin looks like this has grown stale. Do you have any need/desire to revive? Or drop in favor of #59?

@chevinbrown
Copy link
Contributor

Closing in favor of #56

@chevinbrown chevinbrown closed this Dec 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants