Class: YARD::Handlers::Ruby::ActiveRecord::Fields::DefineHandler

Inherits:
MethodHandler
  • Object
show all
Defined in:
lib/yard-activerecord/fields/define_handler.rb

Instance Method Summary collapse

Instance Method Details

#processObject



5
6
7
8
9
10
11
# File 'lib/yard-activerecord/fields/define_handler.rb', line 5

def process
  if statement.file == 'db/schema.rb'
    globals.ar_schema = true
    parse_block(statement.last.last)
    globals.ar_schema = false
  end
end