Is your plugin hosted on GitHub? Make sure to press the "fetch" button next to the repository field to fetch your plugin's info from GitHub rather than typing it all in.
Repository
Name
Home Page
Short description Allows AR models to behave as same as view tables.
Description Allows AR models to behave as same as view tables. It’s similar to STI but more powerful cause we can specify plural columns. === Usage Let’s consider following table that manages students with two columns “grade” and “deleted”, where “deleted” means logical deletion. class Member < ActiveRecord::Base; end class ActiveMember < Member acts_as_view :deleted => false end class DeletedMember < Member acts_as_view :deleted => true end class ActiveGrade2Member < Member acts_as_view :deleted => false, :grade=>2 end class InheritedActiveGrade2Member < ActiveMember acts_as_view :grade=>2 end We can easily read records as same as using DB view table. ActiveMember.find(:all) # => SELECT * FROM members WHERE (( deleted = 'f' )) DeletedMember.find(:all) # => SELECT * FROM members WHERE (( deleted = 't' )) ActiveGrade2Member.find(:all) # => SELECT * FROM members WHERE (( deleted = 'f' ) AND ( grade = 2 )) InheritedActiveGrade2Member.find(:all) # => SELECT * FROM members WHERE (( ( deleted = 'f' ) ) AND ( ( grade = 2 ) ))
Description format RDoc MarkDown Textile
License Ruby's Rails' (MIT) GPL LGPL BSD Apache Artistic PublicDomain BSD-type Free-Trial Free-but-Restricted OpenSource Proprietary Shareware Source-available-proprietary Commercial
Category Assets Controllers Internationalization Misc. Enhancements Model Rails Engines Searching and Queries Security Statistics and Logs Testing View Extensions