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.
Hoodow-acts_as_commentable
Advanced tools
Allows for comments to be added to multiple and different models.
== Resources
Install
Rails
script/plugin install http://github.com/jackdempsey/acts_as_commentable.git
Merb/Rails
Install the gem(s):
sudo gem install jackdempsey-acts_as_commentable
add the folloowing line to your environment.rb
config.gem 'jackdempsey-acts_as_commentable', :lib => 'acts_as_commentable', :source => "http://gems.github.com"
Generate your comment model:
script/generate comment
Then migrate your database:
rake db:migrate
== Usage Merb Users:
add 'dependency "acts_as_commentable"' to your init.rb or dependencies.rb if using merb-stack
Make your ActiveRecord model act as commentable.
class Model < ActiveRecord::Base acts_as_commentable end
commentable = Model.create commentable.comments.create(:title => "First comment.", :comment => "This is the first comment.")
commentable = Model.find(1) comments = commentable.comments.recent.limit(10).all
== Credits
Xelipe - This plugin is heavily influenced by Acts As Taggable.
== More
http://www.juixe.com/techknow/index.php/2006/06/18/acts-as-commentable-plugin/ http://www.juixe.com/projects/acts_as_commentable
FAQs
Unknown package
We found that Hoodow-acts_as_commentable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.