This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
en: | |
reservations: | |
messages: | |
create: | |
success: "The appointment was created successfully" | |
error: "Couldn't create the appointment. #{errors}" | |
update: | |
success: "Changes to the appointment were saved" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Outer | |
module M | |
def foo | |
if self.class.superclass.instance_methods.include?('foo') | |
super | |
else | |
puts 'module foo' | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<def tag="js-wrapper" attrs="convert"> | |
<set-scoped vals="&[]"> | |
<do param="default" /> | |
<% if convert %> | |
<%= "[#{scope.vals.*.inspect.join(', ')}]" %> | |
<% else %> | |
<% scope.retval = scope.vals %> | |
<% end %> | |
</set-scoped> | |
</def> |
NewerOlder