Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
Fix rails 4 (requires symbol has/belongs associations)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnoack committed May 8, 2014
1 parent 5455456 commit 04fcb5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/right_on/right.rb
Expand Up @@ -22,7 +22,7 @@ class << self

def associate_group(klass, group)
@@restricted_by_right_groups[klass] = group
has_one klass.table_name.singularize, :dependent => :restrict
has_one klass.table_name.singularize.to_sym, :dependent => :restrict
end

def associated_groups
Expand Down
2 changes: 1 addition & 1 deletion right_on.gemspec
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.add_dependency('activerecord', [">= 2.0.0", "< 4.0.0"])
spec.add_dependency('activerecord', [">= 2.0.0", "< 5.0.0"])
spec.add_dependency('dependent_restrict', [">= 0.0.5"])
spec.add_dependency('input_reader', ["~> 0.0"])
spec.add_development_dependency "bundler", "~> 1.3"
Expand Down

0 comments on commit 04fcb5f

Please sign in to comment.