Skip to content

Commit

Permalink
AR: We need to #to_s the app
Browse files Browse the repository at this point in the history
  • Loading branch information
judofyr committed Jul 2, 2013
1 parent 4c13ea7 commit a49a059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/camping/ar.rb
Expand Up @@ -85,5 +85,5 @@ def Base.table_name_prefix
end
Camping::S.sub! /autoload\s*:Base\s*,\s*['"]camping\/ar['"]/, $AR_EXTRAS
Camping::Apps.each do |c|
c::Models.module_eval $AR_EXTRAS.gsub('Camping', c)
c::Models.module_eval $AR_EXTRAS.gsub('Camping', c.to_s)
end

0 comments on commit a49a059

Please sign in to comment.