lib/neo/rails/exposure.rb in neo-rails-0.3.2 vs lib/neo/rails/exposure.rb in neo-rails-0.4.0
- old
+ new
@@ -39,10 +39,9 @@
# If the value is given with a block, just execute the block
# if a value was not set yet.
#
# Raise UndeclaredVariableError if access variable wasn't declared before.
def expose(key, value=nil)
- name = key.to_sym
value = yield if block_given?
self.exposures[key] = value
end
private