Sha256: 02e64822c5c24d71236c4f4c7cb6dd40d82445a8e7a4c34b3f6f1a9e2b327751

Contents?: true

Size: 909 Bytes

Versions: 10

Compression:

Stored size: 909 Bytes

Contents

class ScribblerVar < ActiveRecord::Base
  
  #= Configuration
      #== Associations
      
      
      #== Plugins and modules
        #=== PlugIns
          # => Stuff in Here        
  
        #=== include Modules
        include ScribbleCms::ScribblerElementSetup
  
      #== Konstanten
      VAR_TYPES = {
        :decimal => ""
      }
  
      #== Validation and Callbacks
        #=== Validation
       
          
        #=== Callbacks
          # => Stuff in Here
          
          
    # => END
    
    
    def self.get(container_name, group_name, name, type)
      
      q = {:name => container_name}
      container = ScribblerContainer.where(:name => container_name).first || ScribblerContainer.create(q)
      container.scribbler_group(group_name) do |g|
        return g.var(name, type)
      end  
      
      
    end
    
    def self.set(group, name, value)
    end    
  
end  

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
scribble_cms-0.91 app/models/scribbler_var.rb
scribble_cms-0.90 app/models/scribbler_var.rb
scribble_cms-0.89 app/models/scribbler_var.rb
scribble_cms-0.88 app/models/scribbler_var.rb
scribble_cms-0.82 app/models/scribbler_var.rb
scribble_cms-0.8 app/models/scribbler_var.rb
scribble_cms-0.71 app/models/scribbler_var.rb
scribble_cms-0.7 app/models/scribbler_var.rb
scribble_cms-0.6 app/models/scribbler_var.rb
scribble_cms-0.5 app/models/scribbler_var.rb