Sha256: 5186c5d26703aa138382f2d961d00e28ed587997f16f03d76f01a76f2a660387
Contents?: true
Size: 254 Bytes
Versions: 1
Compression:
Stored size: 254 Bytes
Contents
module Recommendable module Helpers def manual_join(klass, action) table = klass.base_class.table_name "JOIN #{table} ON recommendable_#{action.pluralize}.#{action}able_id = #{table}.id AND #{table}.type = '#{klass}'" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
recommendable-0.2.1.1 | lib/recommendable/helpers.rb |