Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails plugin allowing ActiveRecord models to be made read-only
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
tasks
test
tmp
README
Rakefile
init.rb
install.rb
uninstall.rb

README

ReadOnlyModel
=============

Makes ActiveRecord models read-only by rewriting all destructive database operations to raise ActiveRecord::ReadOnlyModel. Great for integration with legacy databases where all the business logic is in a separate codebase.

Installation
------------

script/plugin install git://github.com/jaz303/read_only_model.git

Usage
-----

class MyLegacyModel < ActiveRecord::Base
  read_only_model
end
Something went wrong with that request. Please try again.