Skip to content

Add link to docs #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ group :development do
end
```


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✂️

## Usage

### Hover to reveal ActiveRecord schema
Expand All @@ -24,6 +25,11 @@ end

Nested models (e.g. `Admin::User`) are not yet supported.

### Documentation

See the [documentation](https://shopify.github.io/ruby-lsp-rails) for more in-depth details about the
[supported features](https://shopify.github.io/ruby-lsp/RubyLsp/Rails.html).

### Running Tests

1. Open a test which inherits from `ActiveSupport::TestCase` or one if its descendants, such as `ActionDispatch::IntegrationTest`.
Expand Down
4 changes: 4 additions & 0 deletions lib/ruby-lsp-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
require "ruby_lsp_rails/railtie"

module RubyLsp
# # Supported features
#
# - [Hover](rdoc-ref:RubyLsp::Rails::Hover)
# - [CodeLens](rdoc-ref:RubyLsp::Rails::CodeLens)
Copy link
Contributor Author

@andyw8 andyw8 Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vinistock I added this as an equivalent to https://shopify.github.io/ruby-lsp/RubyLsp/Requests.html, so we have somewhere to link to directly, does it seem suitable?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, great idea. I think this is the place to put it.

module Rails
end
end