Skip to content

Commit

Permalink
shows some debugging information as the tool examines models
Browse files Browse the repository at this point in the history
to make it easer for people identify what causes a failure.
  • Loading branch information
bwlang committed Mar 25, 2011
1 parent a18776a commit e7dcc1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/o_data/active_record_schema/association.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ def self.from_end_options_for(schema, reflection)
end end


def self.to_end_options_for(schema, reflection) def self.to_end_options_for(schema, reflection)
Rails.logger.level = 0 Rails.logger.info("Processing #{reflection.active_record}")
Rails.logger.info("Processing #{reflection.class}")
active_record = active_record_for_to_end(reflection) active_record = active_record_for_to_end(reflection)
entity_type = schema.find_entity_type(:active_record => active_record) entity_type = schema.find_entity_type(:active_record => active_record)


Expand Down

0 comments on commit e7dcc1b

Please sign in to comment.