merge
This commit is contained in:
commit
281a54c4e5
@ -38,6 +38,8 @@ this.Bullseye = {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
controller = controller.replace('/', '-');
|
||||||
|
|
||||||
if (this.targets[controller] && this.targets[controller][action]) {
|
if (this.targets[controller] && this.targets[controller][action]) {
|
||||||
this.targets[controller][action].apply(this.context);
|
this.targets[controller][action].apply(this.context);
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ module Bullseye
|
|||||||
end
|
end
|
||||||
|
|
||||||
def parts
|
def parts
|
||||||
@source.split('/')
|
@parts ||= @source.split('/')
|
||||||
end
|
end
|
||||||
|
|
||||||
class PartFinder
|
class PartFinder
|
||||||
|
@ -15,7 +15,7 @@ module Bullseye
|
|||||||
end
|
end
|
||||||
|
|
||||||
def evaluate(scope, locals, &block)
|
def evaluate(scope, locals, &block)
|
||||||
@source = scope.logical_path[1..-1]
|
@source = scope.logical_path.gsub(%r{^[^/]*/}, '')
|
||||||
|
|
||||||
<<-JS
|
<<-JS
|
||||||
Bullseye.target('#{controller}', #{actions.to_json}, function() {
|
Bullseye.target('#{controller}', #{actions.to_json}, function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user