Class: Rfm::Layout::SubLayout

Inherits:
Rfm::Layout show all
Includes:
Config, LayoutModule
Defined in:
lib/rfm/base.rb

Instance Attribute Summary collapse

Attributes inherited from Rfm::Layout

#field_mapping, #field_names, #portal_meta, #subs, #table

Instance Method Summary collapse

Methods included from LayoutModule

#all, #any, #create, #delete, #edit, #expand_repeats, #find, #get_records, #join_repeats, #name, #params, #query, #state, #view

Methods included from Config

#config, #config_clear, #get_config, #sanitize_config

Methods inherited from Rfm::Layout

#count, #date_format, #field_controls, #field_meta, #field_names_no_load, #ignore_bad_data, #load_field_mapping, #main_init, #modelize, #models, #portal_meta_no_load, #portal_names, #sublayout, #table_no_load, #time_format, #timestamp_format, #total_count, #value_lists, #view_meta

Constructor Details

#initialize(master) ⇒ SubLayout

Returns a new instance of SubLayout.



51
52
53
54
# File 'lib/rfm/base.rb', line 51

def initialize(master)
	super(master)
	self.parent_layout = master
end

Instance Attribute Details

#modelObject

Returns the value of attribute model.



49
50
51
# File 'lib/rfm/base.rb', line 49

def model
  @model
end

#parent_layoutObject

Returns the value of attribute parent_layout.



49
50
51
# File 'lib/rfm/base.rb', line 49

def parent_layout
  @parent_layout
end