Class: ActiveScaffold::Config::PrintBase

Inherits:
Base show all
Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/print_base.rb

Direct Known Subclasses

PrintList

Constant Summary collapse

@@empty_field_text =
''
@@maximum_rows =
10000

Instance Attribute Summary collapse

Attributes inherited from Base

#user

Instance Method Summary collapse

Methods inherited from Base

#crud_type, #formats, #formats=, inherited

Methods included from ActiveScaffold::Configurable

#configure, #method_missing

Constructor Details

#initialize(core_config) ⇒ PrintBase

Returns a new instance of PrintBase.



6
7
8
9
10
11
12
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/print_base.rb', line 6

def initialize(core_config)
  @core = core_config

  # inherit from global scope
  @empty_field_text = self.class.empty_field_text
  @maximum_rows = self.class.maximum_rows
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveScaffold::Configurable

Instance Attribute Details

#empty_field_textObject

Returns the value of attribute empty_field_text.



29
30
31
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/print_base.rb', line 29

def empty_field_text
  @empty_field_text
end

#labelObject



35
36
37
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/print_base.rb', line 35

def label
  @label ? as_(@label) : @core.label
end

instance-level configuration


the ActionLink for this action



27
28
29
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/print_base.rb', line 27

def link
  @link
end

#maximum_rowsObject

Returns the value of attribute maximum_rows.



31
32
33
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/print_base.rb', line 31

def maximum_rows
  @maximum_rows
end