module SexyRelations
Constants
- VERSION
Public Instance Methods
sexy_relations(relation = nil)
click to toggle source
# File lib/sexy_relations.rb, line 5 def sexy_relations(relation = nil) puts "==== #{self.name.upcase} ====" self.reflect_on_all_associations(relation).each do |a| puts "#{a.macro} => #{a.name}" end puts "======================" end
sr(relation = nil)
click to toggle source
# File lib/sexy_relations.rb, line 13 def sr(relation = nil) sexy_relations(relation) end