README.md in fierce-0.1.3 vs README.md in fierce-0.1.4
- old
+ new
@@ -49,11 +49,11 @@
"Don't use a helper; it's just bad form ... but if you must, you must."
end
And a presenter with a little something too:
- class Presenters::Home::Index
+ class Home::Index
def from_your_presenters
"Use your presenters. It is a pure Ruby class of your own. Mixins and inheritance just work. One presenter per view. Go!"
end
end
@@ -81,10 +81,10 @@
Classes that initialize with a single argument will be passed a default presenter. It will have accessors to those instance variable exposed in the controller. It will also have access to locals and helper methods where appropriate.
Given the setup previously described, helpers, controllers and all:
- class Presenters::Home::Index
+ class Home::Index
attr_reader :default_presenter
def initialize(default_presenter)
@default_presenter = default_presenter
end