Sha256: 426c0cf948968395796d79168063f2255a02ba2ac225260309a39e1ea316aa55
Contents?: true
Size: 558 Bytes
Versions: 15
Compression:
Stored size: 558 Bytes
Contents
require 'generic/api/basic/xgroup' # override some key methods to ensure it works with ORM object instantiation def basic_config context send :"#{context}_config" end def guest_config @guest = User.create(:name => "Kristian", :role => "guest") @ability = Permits::Ability.new(@guest) @comment = Comment.create(:user_id => @guest.id) @post = Post.create(:writer => @guest.id) @article = Article.create(:author => @guest.id) end def admin_config @admin = User.create(:role => 'admin') @ability = Permits::Ability.new(@admin) end
Version data entries
15 entries across 15 versions & 1 rubygems