Skip to content

Commit

Permalink
Fix possible failure on Rails 4.1, JRuby by readding #to_param
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Jun 24, 2015
1 parent 967daf0 commit 8f32035
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/fixtures/poro.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def id
@attributes[:id] || @attributes['id'] || object_id
end

def to_param
id
end

def method_missing(meth, *args)
if meth.to_s =~ /^(.*)=$/
@attributes[$1.to_sym] = args[0]
Expand Down

0 comments on commit 8f32035

Please sign in to comment.