Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This gem provides a frontend to the audited gem.
Add the gem to your Gemfile
and run bundle install
.
gem 'audited-timeline'
Render the audited_timeline/list
partial and provide it the audits to be
rendered:
<%= render 'audited_timeline/list', audits: @user.all_audits %>
Include audited-timeline
in your application.scss
:
@import "audited-timeline";
To ease rendering a timeline which includes associated audits, there is a
AuditedTimeline::AuditedConcern
. Include it in your model along with audited
and
has_associated_audits
:
class User < ActiveRecord::Base
include AuditedTimeline::AuditedConcern
audited
has_associated_audits
end
It is possible to easily override an audit diff.
In development environment, each audit which has been rendered with the default partial contains a HTML comment which points you to the partial you would have to create.
<div class="audited-timeline-body">
<!-- create partial audits/user.create to override this table -->
<h1>User</h1>
<table class="diff">
...
</table>
</div>
In this case, create in your application app/views/audits/_user.create.html.erb
to override this audit type.
audited-timeline will provide a locale called audit
to your partial.
audited-timeline will simply call #to_s
on your model name. To prevent having
#<User:0x007fe2e8a25f58>
in your timeline, define #to_s
on your User
model:
class User < ActiveRecord::Base
alias_attribute :to_s, :fullname
end
FAQs
Unknown package
We found that audited-timeline demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.