Class: Activeapi::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/activeapi.rb

Instance Method Summary collapse

Instance Method Details

#listmetObject



5
6
7
8
9
# File 'lib/activeapi.rb', line 5

def listmet
  models = Dir["#{Rails.root}/app/models/**/*.rb"].map do |f|
    File.basename(f,File.extname(f)).camelize
  end
end