Skip to content
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

Allow attributes on class #204

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
2 changes: 1 addition & 1 deletion Saule/Http/AllowsQueryAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Saule.Http
/// If the collection implements <see cref="IQueryable{T}"/>, the query will be executed
/// efficiently.
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
public sealed class AllowsQueryAttribute : ActionFilterAttribute
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Saule/Http/DisableDefaultIncludedAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Saule.Http
/// This attribute is only relevant when requesting a resource without an
/// explicit include parameter.
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
public sealed class DisableDefaultIncludedAttribute : ActionFilterAttribute
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Saule/Http/PaginatedAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Saule.Http
/// Indicates that the returned collection must be paginated. If the collection
/// implements <see cref="IQueryable{T}"/>, the query will be executed efficiently.
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
public sealed class PaginatedAttribute : ActionFilterAttribute
{
private int? _perPage;
Expand Down