Module: ActiveAdminEnvironmentTag
- Defined in:
- lib/active_admin_environment_tag.rb,
lib/active_admin_environment_tag/version.rb
Defined Under Namespace
Modules: Rails
Constant Summary collapse
- VERSION =
"0.0.2"
Class Attribute Summary collapse
-
.environment_colors ⇒ Object
Returns the value of attribute environment_colors.
-
.tag_position ⇒ Object
Returns the value of attribute tag_position.
Class Method Summary collapse
- .configuration ⇒ Object (also: config, configure)
- .tag_placement ⇒ Object
Class Attribute Details
.environment_colors ⇒ Object
Returns the value of attribute environment_colors.
11 12 13 |
# File 'lib/active_admin_environment_tag.rb', line 11 def environment_colors @environment_colors end |
.tag_position ⇒ Object
Returns the value of attribute tag_position.
10 11 12 |
# File 'lib/active_admin_environment_tag.rb', line 10 def tag_position @tag_position end |
Class Method Details
.configuration ⇒ Object Also known as: config, configure
13 14 15 16 17 |
# File 'lib/active_admin_environment_tag.rb', line 13 def configuration if block_given? yield(ActiveAdminEnvironmentTag) end end |
.tag_placement ⇒ Object
23 24 25 |
# File 'lib/active_admin_environment_tag.rb', line 23 def tag_placement @tag_positions.fetch(@tag_position.to_sym, @tag_positions[:top_left]) end |