10 lines
366 B
Ruby
10 lines
366 B
Ruby
|
# Place any code you want to run when the component is included on the client
|
||
|
# or server.
|
||
|
|
||
|
# To include code only on the client use:
|
||
|
# if RUBY_PLATFORM == 'opal'
|
||
|
#
|
||
|
# To include code only on the server, use:
|
||
|
# unless RUBY_PLATFORM == 'opal'
|
||
|
# ^^ this will not send compile in code in the conditional to the client.
|
||
|
# ^^ this include code required in the conditional.
|