Sha256: 992ce5845d93dc9873bbc24214c39e2def81b65915020ffd07252bed8b1908b5
Contents?: true
Size: 551 Bytes
Versions: 3
Compression:
Stored size: 551 Bytes
Contents
module Pageflow class Account < ActiveRecord::Base include FeatureTarget has_many :users has_many :entries has_many :folders has_many :themings belongs_to :default_theming, :class_name => 'Theming' validates :default_theming, :presence => true accepts_nested_attributes_for :default_theming, :update_only => true scope :with_landing_page, -> { where.not(:landing_page_name => '') } def build_default_theming(*args) super.tap do |theming| theming.account = self end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pageflow-0.9.2 | app/models/pageflow/account.rb |
pageflow-0.9.1 | app/models/pageflow/account.rb |
pageflow-0.9.0 | app/models/pageflow/account.rb |