Module: DuckMap::MapperMethods
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/duck_map/mapper.rb
Instance Method Summary collapse
-
#allow_blank_route_name(value) ⇒ Object
See blank_route_name.
- #clear_filter(section, key) ⇒ Object
- #clear_filters ⇒ Object
- #exclude_actions(*args) ⇒ Object
- #exclude_controllers(*args) ⇒ Object
- #exclude_names(*args) ⇒ Object
- #exclude_verbs(*args) ⇒ Object
- #include_actions(*args) ⇒ Object
- #include_controllers(*args) ⇒ Object
- #include_names(*args) ⇒ Object
- #include_verbs(*args) ⇒ Object
- #reset_filters ⇒ Object
Instance Method Details
#allow_blank_route_name(value) ⇒ Object
See blank_route_name
157 158 159 |
# File 'lib/duck_map/mapper.rb', line 157 def allow_blank_route_name(value) @set.blank_route_name = value end |
#clear_filter(section, key) ⇒ Object
167 168 169 |
# File 'lib/duck_map/mapper.rb', line 167 def clear_filter(section, key) @set.sitemap_filters.clear_filter(section, key) end |
#clear_filters ⇒ Object
162 163 164 |
# File 'lib/duck_map/mapper.rb', line 162 def clear_filters @set.sitemap_filters.clear_filters end |
#exclude_actions(*args) ⇒ Object
172 173 174 175 |
# File 'lib/duck_map/mapper.rb', line 172 def exclude_actions(*args) args.insert(0, :actions) @set.sitemap_filters.exclude_filter(*args) end |
#exclude_controllers(*args) ⇒ Object
178 179 180 181 |
# File 'lib/duck_map/mapper.rb', line 178 def exclude_controllers(*args) args.insert(0, :controllers) @set.sitemap_filters.exclude_filter(*args) end |
#exclude_names(*args) ⇒ Object
184 185 186 187 |
# File 'lib/duck_map/mapper.rb', line 184 def exclude_names(*args) args.insert(0, :names) @set.sitemap_filters.exclude_filter(*args) end |
#exclude_verbs(*args) ⇒ Object
190 191 192 193 |
# File 'lib/duck_map/mapper.rb', line 190 def exclude_verbs(*args) args.insert(0, :verbs) @set.sitemap_filters.exclude_filter(*args) end |
#include_actions(*args) ⇒ Object
196 197 198 199 |
# File 'lib/duck_map/mapper.rb', line 196 def include_actions(*args) args.insert(0, :actions) @set.sitemap_filters.include_filter(*args) end |
#include_controllers(*args) ⇒ Object
202 203 204 205 |
# File 'lib/duck_map/mapper.rb', line 202 def include_controllers(*args) args.insert(0, :controllers) @set.sitemap_filters.include_filter(*args) end |
#include_names(*args) ⇒ Object
208 209 210 211 |
# File 'lib/duck_map/mapper.rb', line 208 def include_names(*args) args.insert(0, :names) @set.sitemap_filters.include_filter(*args) end |
#include_verbs(*args) ⇒ Object
214 215 216 217 |
# File 'lib/duck_map/mapper.rb', line 214 def include_verbs(*args) args.insert(0, :verbs) @set.sitemap_filters.include_filter(*args) end |
#reset_filters ⇒ Object
220 221 222 |
# File 'lib/duck_map/mapper.rb', line 220 def reset_filters @set.sitemap_filters.reset end |