diff options
| author | Teddy Wing | 2018-01-25 11:57:30 +0100 | 
|---|---|---|
| committer | Zog | 2018-01-25 17:18:02 +0100 | 
| commit | a636969d6e588f0fb7d155bbc22582f742da8e48 (patch) | |
| tree | 38964771ca4cf2bf0a416694de3277a086b33cc7 /lib | |
| parent | 5fb1450194882c9d1169d3e1f64a24e54a5f1813 (diff) | |
| download | chouette-core-a636969d6e588f0fb7d155bbc22582f742da8e48.tar.bz2 | |
AF83::Decorator::Link: Delete `#default_class`
This method was overriding classes that were added by `#add_class` in
addition to those added by `#class`. Obviously, the argument to
`#add_class` should be appended to the default.
That seemed like a pain to do, so instead I'm getting rid of the concept
of a default class. Instead, we're going to force all links to use the
template-defined styles for now. That goes in line with Luc's desire to
be more consistent in the links, as he stated yesterday.
Refs #5586
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/af83/decorator/link.rb | 7 | 
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/af83/decorator/link.rb b/lib/af83/decorator/link.rb index fd50069fe..55db3f5bb 100644 --- a/lib/af83/decorator/link.rb +++ b/lib/af83/decorator/link.rb @@ -25,13 +25,6 @@ class AF83::Decorator::Link      link_class args    end -  def default_class *args -    has_class = @options[:link_class] && !@options[:link_class].empty? -    return if has_class - -    self.class args -  end -    def method_missing name, *args, &block      if block_given?        @options[name] = block  | 
