Class: RailsFinder::SchemaLoader
- Inherits:
-
Object
- Object
- RailsFinder::SchemaLoader
- Defined in:
- lib/railsfinder/schema_loader.rb
Constant Summary collapse
- SCHEMA_FILE_PATH =
"db/schema.rb"
Instance Method Summary collapse
Instance Method Details
#load_schema_data ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/railsfinder/schema_loader.rb', line 5 def load_schema_data schema_path = find_schema_file return {} unless schema_path && File.exist?(schema_path) schema_content = File.read(schema_path) SchemaParser.parse_schema(schema_content) end |