Sha256: f3f63e1cdcf6498f858d12bbfe9b0f81221ec74dd26fc8d931e763ff92f5b9fa
Contents?: true
Size: 849 Bytes
Versions: 7
Compression:
Stored size: 849 Bytes
Contents
# -*- encoding : utf-8 -*- class AddSessionCardtype < Card::CoreMigration def up session_card_name = Card.exists?( 'Session' ) ? 'BrowserSession' : 'Session' Card.create! :name=>session_card_name, :type_code=>:cardtype, :codename=>'session', :subcards=>{'+description'=>{:content=>'Session cards are for non-permanent content. They are not stored in the database and can have different values for different users. You can use a Session card to keep track of certain state of a particular user like the content of shopping basket.'}} Card::Cache.reset_global Card.create! :name=>'*edit toolbar pinned', :type_code=>:session, :codename=>'edit_toolbar_pinned' Card.create! :name=>'*toolbar pinned', :type_code=>:session, :codename=>'toolbar_pinned' end end
Version data entries
7 entries across 7 versions & 1 rubygems