Sha256: 95e9c0e1eded3a0825e9876bbb381a3417fce5e0e29edafe6b56de9ca66f2af1
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
# class Plugins::PostReorder::Models::PostReorder < ActiveRecord::Base # attr_accessible :path, :browser_key # belongs_to :site # here create your models normally # notice: your tables in database will be plugins_post_reorder in plural (check rails documentation) # end # here your default models customization # Site.class_eval do # has_many :post_reorder, class_name: "Plugins::PostReorder::Models::PostReorder" # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
post_reorder-0.0.1 | app/models/plugins/post_reorder/post_reorder.rb |