module ToJbuilder
Constants
- VERSION
Public Class Methods
model_names()
click to toggle source
# File lib/to_jbuilder.rb, line 21 def self.model_names @model_names ||= if defined?(ActiveRecord::Base) ActiveRecord::Base.descendants.map(&:to_s).reject{|d| d.include?("HABTM") }.map(&:underscore) else [] end end